I do not advocate using the regex I just made. I didn't even test it. I doubt it works reliably.($file) = $URI =~ m{ ^ (?: https? | ftp ) :// # scheme [^/]+ # domain (?: / [^/?#]* )* # directories / ( [^/?#]* ) # filename (?: $ | [?#] ) }x;
In reply to Re: Regexes and URIs
by japhy
in thread Regexes and URIs
by Amoe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |