note 20804 rejected from function.ereg by sander
| From: | sander@php.net | Date: | Wed, 17 Apr 2002 12:34:53 +0000 |
| Subject: | note 20804 rejected from function.ereg by sander | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-29472@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})"