Re: Getting more than one match with regexp

2008-04-15 Thread Dr.Ruud
Rob Dixon schreef: > Dr.Ruud: >> Rob Dixon: >>> my @files = $text =~ m#(http://.*?.mp3)"#g; >> >> Missing is escaping of the dot. >> This would lead to mismatching "http://my-mp3.mp3";. > > Thank you Ruud You're welcome. I forgot to mention that there are alternatives: my @files = $text =~

Re: Getting more than one match with regexp

2008-04-15 Thread Jim
Many thanks! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Getting more than one match with regexp

2008-04-14 Thread Rob Dixon
Dr.Ruud wrote: > Rob Dixon schreef: >> >> my @files = $text =~ m#(http://.*?.mp3)"#g; > > Missing is escaping of the dot. > This would lead to mismatching "http://my-mp3.mp3";. Thank you Ruud -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http:

Re: Getting more than one match with regexp

2008-04-14 Thread Dr.Ruud
Rob Dixon schreef: > Jim wrote: >> I have some code (below) that retrieves an URL from $response- >> content. $response->content contains an RSS a retrieved RSS file. >> >> How would I retrieve all the URLs in $response->content instead of >> just the first one? >> >> if($response->content =~ m/

Re: Getting more than one match with regexp

2008-04-14 Thread Rob Dixon
Jim wrote: > Hi all, > > I have some code (below) that retrieves an URL from $response- >> content. $response->content contains an RSS a retrieved RSS file. > > How would I retrieve all the URLs in $response->content instead of > just the first one? > > if($response->content =~ m/http:(.*?).mp3"

Re: Getting more than one match with regexp

2008-04-14 Thread Chas. Owens
On Mon, Apr 14, 2008 at 6:45 AM, Jim <[EMAIL PROTECTED]> wrote: snip > How would I retrieve all the URLs in $response->content instead of > just the first one? > > if($response->content =~ m/http:(.*?).mp3"/) > { > $url = "http:" . $1 . ".mp3"; > > } snip Try my @mp3 = $respo

Getting more than one match with regexp

2008-04-14 Thread Jim
Hi all, I have some code (below) that retrieves an URL from $response- >content. $response->content contains an RSS a retrieved RSS file. How would I retrieve all the URLs in $response->content instead of just the first one? if($response->content =~ m/http:(.*?).mp3"/) { $url = "