Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
files# can be any number, /i/ can be any leter, /90c/ can be any number/letter, and the filename can be a mix of numbers and chars but will always be a .jpg. I tried my best to break it myself but I failed.
This is what I came up with.
my $content2 =~ m#(www\.page\.com/files\d+/[a..z]/\d+[a-z]/(.+)+\.jpg) +#i;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: very quick link regex
by Thelonius (Priest) on Aug 03, 2007 at 09:09 UTC | |
Re: very quick link regex
by Zaxo (Archbishop) on Aug 03, 2007 at 04:35 UTC | |
Re: very quick link regex
by GrandFather (Saint) on Aug 03, 2007 at 04:55 UTC | |
Re: very quick link regex
by Anno (Deacon) on Aug 03, 2007 at 11:40 UTC | |
Re: very quick link regex
by Anonymous Monk on Aug 03, 2007 at 04:31 UTC | |
by varian (Chaplain) on Aug 03, 2007 at 07:40 UTC | |
by atemon (Chaplain) on Aug 03, 2007 at 05:16 UTC |