You are here: Re: Find urls in plain text files « PHP Programming Language « IT news, forums, messages
Re: Find urls in plain text files

Posted by Michael Fesser on 11/02/07 18:42

..oO(Chris Gorospe)

>Salve Håkedal wrote:
>> What is the best regular expression for finding urls in plain text
>> files?
>> (By urls I mean http://www.something.com, but also www.something.com,
>> or salve@somewhere.com)
>>
>The simplest way is to use the one thing they all have in common. ".com".
>
>strstr($text,'.com');

What about the other TLDs? There are _some_ more ...

Micha

 

Navigation:

[Reply to this 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

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