Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners > Getting more th...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 7 Topic 10934 of 12261
Post > Topic >>

Getting more than one match with regexp

by Evan.Dembskey@[EMAIL PROTECTED] (Jim) Apr 14, 2008 at 03:45 AM

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 = "http:" . $1 . ".mp3";

}


Thanks for your time

Regards,
Jim
 




 7 Posts in Topic:
Getting more than one match with regexp
Evan.Dembskey@[EMAIL PROT  2008-04-14 03:45:03 
Re: Getting more than one match with regexp
rob.dixon@[EMAIL PROTECTE  2008-04-14 16:26:29 
Re: Getting more than one match with regexp
rvtol+news@[EMAIL PROTECT  2008-04-14 23:13:43 
Re: Getting more than one match with regexp
rob.dixon@[EMAIL PROTECTE  2008-04-14 23:29:33 
Re: Getting more than one match with regexp
rvtol+news@[EMAIL PROTECT  2008-04-15 20:36:11 
Re: Getting more than one match with regexp
chas.owens@[EMAIL PROTECT  2008-04-14 11:20:35 
Re: Getting more than one match with regexp
Evan.Dembskey@[EMAIL PROT  2008-04-14 13:48:28 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 17:44:03 CST 2008.