Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi there, Im trying to create a RE to find some urls in a text and I don't want to go line per line.

the problem is that my code only find the first url:

$data =~ /someurl.com(.*?)(\s|\<|\n|\'|\")/gsi;
$data is a full html page.

What I'm doing wrong, Is there a way to get all the urls with one RE or I must go line per line

Thanks.

Replies are listed 'Best First'.
Re: Regular expression
by Anonymous Monk on Aug 06, 2009 at 15:50 UTC
      Using @data = $data =~ //gsi worked Thank you.