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
[Back to original message]
|