Re: [PHP] Extract url from string

2007-03-12 Thread Tijnema !
On 3/12/07, Brad Fuller [EMAIL PROTECTED] wrote: Hey guys, I've been banging my head against the wall trying to figure out the right pattern to use to extract a URL from a string using preg_match(). I've been STFW for a while now, and all the examples that I find are for extracting URLs from

RE: [PHP] Extract url from string

2007-03-12 Thread Brad Fuller
-Original Message- From: Tijnema ! [mailto:[EMAIL PROTECTED] Sent: Monday, March 12, 2007 1:10 PM To: Brad Fuller Cc: php-general@lists.php.net Subject: Re: [PHP] Extract url from string On 3/12/07, Brad Fuller [EMAIL PROTECTED] wrote: Hey guys, I've been banging my head

Re: [PHP] Extract url from string

2007-03-12 Thread Richard Lynch
The problem is that URL has a very specific meaning, and includes a BUNCH of complexities you may or may not need... Download The Regex Coach and play around with some sample inputs until you find what works for your needs, which is not a full-blown URL detector, since that would be very