Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: very quick link regex

by GrandFather (Saint)
on Aug 03, 2007 at 04:55 UTC ( [id://630449]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $url = 'http://www.page.com/files4/i/90c/1493010807t1.jpg';
    my ($domain, $path, $file) = $url =~ m'^(\w+://[\w.]+/)(.*?/)([\w.]+)$
    +';
    
    print "$domain\n$path\n$file\n";
    
  2. or download this
    http://www.page.com/
    files4/i/90c/
    1493010807t1.jpg
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://630449]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2025-01-16 15:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which URL do you most often use to access this site?












    Results (54 votes). Check out past polls.