Reply to Re: Extracting URLs from a string using a Regular Expression

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация