note 20804 added to function.ereg
| From: | asmo at mail dot utexas dot edu | Date: | Tue, 16 Apr 2002 17:59:39 +0000 |
| Subject: | note 20804 added to function.ereg | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-29451@lists.php.net to get a copy of this message | ||
To include a literal "[" or "]" with in a [...] block an easy work around is as
follows.
Say you wanted to match a block of 6 characters containing a lowercase letter or a literal [ or ],
then use the following pattern:
"(([a-z]|\[|\]){6})"
--
http://www.php.net/manual/en/function.ereg.php
http://master.php.net/manage/user-notes.php?action=edit+20804
http://master.php.net/manage/user-notes.php?action=delete+20804
http://master.php.net/manage/user-notes.php?action=reject+20804