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 =~
Many thanks!
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
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:
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/
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"
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
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 = "