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 newline. It works in some cases but it catch the widest possible matching, so if I have something like "try to click here http://www.yahoo.com or there http://www.google.com" the result for $1 is: "http://www.yahoo.com or there http://www.google.com" How can I get simply "http://www.yahoo.com" and then "http://www.google.com"? thanx very much...you'r saving a man Francesco __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>