Posted by Shelly on 09/24/07 16:39
"Moham12345" <m_w_raza@hotmail.com> wrote in message
news:1190642848.815082.151920@w3g2000hsg.googlegroups.com...
> Hi,
>
> Im struggling here ... is it possible to check for a string pattern
> like a valid url in a bigger string. And then return the matching
> pattern string?
>
> so if i had a string like : "This is my website it is called
> www.google.com
> and i have made lots of money"
> Now how can i match a url in this string.... or any url for that
> matter and return it?
>
> In this case it would return "www.google.com".
>
> Thanks in advance.
www.php.net and look at strstr and related functions.
Shelly
[Back to original message]
|