Posted by Stefan Rybacki on 07/14/05 01:09
erin g wrote:
> I am using a convoluted way of extracting URLs from a long string. I've
> been using the explode() function multiple times and creating temp
> arrays until i explode them down enough to get just the URLs.
>
> I'd rather do it using a regular expression but I am having trouble
> finding a good example of this.
>
> Can anyone post a good regular expression to extract the URLS from a
> string and save them in an array?
>
> Thanks a lot!
> Erin G
>
hum, something like this?:
/(http:\/\/[\W]+)/
[Back to original message]
|