RE: [PHP] regexp for URL
| From: | Boaz Yahav | Date: | Mon, 09 Jun 2003 07:33:41 +0000 |
| Subject: | RE: [PHP] regexp for URL | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-150714@lists.php.net to get a copy of this message | ||
Try this :
How to use regular expressions to get the list of links from an HTML
page
http://examples.weberdev.com/get_example.php3?count=1401
extract_links(); Extract all local links from a URL
http://examples.weberdev.com/get_example.php3?count=3333
Sincerely
berber
Visit http://www.weberdev.com/ Today!!!
To see where PHP might take you tomorrow.
-----Original Message-----
From: Mattia [mailto:mattia.c@libero.it]
Sent: Monday, June 09, 2003 7:14 AM
To: php-general@lists.php.net
Subject: [PHP] regexp for URL
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php