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 compl
On 3/12/07, Brad Fuller <[EMAIL PROTECTED]> wrote:
> I tried this:
>
> preg_match("/http(s)?:\/\/(*.?)\s/", $stringUrl, $matches)
>
> But my pattern syntax is messed up cuz I get this error:
>
> Warning: preg_match() [function.preg-match]: Compilation failed:
> nothing to repeat at o
> -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:
>
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
4 matches
Mail list logo