Re: Yet Another Regex Problem

2004-06-08 Thread Ramprasad A Padmanabhan
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

Re: Yet Another Regex Problem

2004-06-08 Thread Jeff 'japhy' Pinyan
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

Yet Another Regex Problem

2004-06-08 Thread Francesco del Vecchio
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 LWP or HTML parser) I've tried with something like /(http.:\/\/.*\s)/ willing to find anything starting with http/https with "//:" and catching everything up to a space or newli