note 49898 added to function.preg-match-all
| From: | philatmusicablissdotcodotuk at osu1 dot php dot net | Date: | Fri, 11 Feb 2005 12:39:54 +0000 |
| Subject: | note 49898 added to function.preg-match-all | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-84826@lists.php.net to get a copy of this message | ||
In reply to rickyale at ig dot com dot br,
The get_urls function does not account for links that contain bookmarks (e.g.
/example.htm#bookmark). The regular expression simply needs the "#" added like so:
"|$type\=\"?'?
?([[:alnum:]:?=&@/#._-]+)\"?'??|i"
----
Manual Page -- http://www.php.net/manual/en/function.preg-match-all.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+49898
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49898&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49898&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49898&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49898&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49898&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+49898&report=yes
Search -- http://master.php.net/manage/user-notes.php