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

Re: regex a url

by count0 (Friar)
on Oct 06, 2002 at 03:39 UTC ( #203133=note: print w/ replies, xml ) Need Help??

in reply to regex a url

An alternative directly using a regexp is to use the URI::URL (or even just the URI) module. This module is especially handy when when dealing with and manipulating URLs.

use URI::URL; my $url = URI::URL->new(' +s/aaa_small.gif ') my ($filename) = ($url->path_segments)[-1];

Comment on Re: regex a url
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2015-11-27 19:48 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (731 votes), past polls