Re: [PHP] Help invoking a regexp

2002-07-26 Thread Analysis & Solutions
Hi Niklas: On Fri, Jul 26, 2002 at 01:54:25AM +0200, Nicklas af Ekenstam wrote: > Hi > > I have this regular expression: > > (((http|https|ftp|gopher)|mailto):(//)?[^ <>"\t]*|www\.[-a-z0-9.]+)[^ .,;\t<">\):] > > Which is supposed to match hyperlinks. I would like to use this > from php to grab

[PHP] Help invoking a regexp

2002-07-25 Thread Nicklas af Ekenstam
Hi I have this regular expression: (((http|https|ftp|gopher)|mailto):(//)?[^ <>"\t]*|www\.[-a-z0-9.]+)[^ .,;\t<">\):] Which is supposed to match hyperlinks. I would like to use this from php to grab all hyperlinks in a text file and return them in an array. I've messed around with the function