Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: regex a url

by jordanh (Chaplain)
on Oct 06, 2002 at 16:39 UTC ( [id://203180]=note: print w/replies, xml ) Need Help??


in reply to regex a url

Sure! Here it is in one line:

my ($filename) = "http://www.merchandisemarket.net/shop/s_images/aaa_small.gif" =~ m{http://www.merchandisemarket.net/shop/s_images/(aaa_small.gif)};

Hey! It does do what he was asking for!

Hope this helps!

:-)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2024-04-25 20:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found