regexp for URL
| From: | Mattia | Date: | Mon, 09 Jun 2003 05:13:43 +0000 |
| Subject: | regexp for URL | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-150703@lists.php.net to get a copy of this message | ||
Does anyone have a good regular expression for capturing all http URL in a string?
now i'm using ?(http://[a-z0-9-/_;&=+-\.\?:@]+)\b?mi
in one of my programs, that is, all strings beginning with http:// and contain chars like a-z0-9 ...
does anione have something better?
thank you