CHange your regex to /http(s)*:\/\/.*?\s/
To see the docs
perldoc perlre ... look for greedy
HTH
Ram
On Tue, 2004-06-08 at 16:15, Francesco del Vecchio wrote:
> Hi guyz,
>
> this regex are goin' to drive me crazy!
>
> My problem is:
>
> I have to find URLs in a text file (so, cannot use LW
On Jun 8, Francesco del Vecchio said:
>I have to find URLs in a text file (so, cannot use LWP or HTML parser)
I'm curious why you can't use a module to extract URLs, but I'll continue
anyway.
>/(http.:\/\/.*\s)/
That regex is broken in a few ways. First, it does NOT match 'http:', it
only matc