note 19744 added to ref.regex
| From: | david at NOgreenhammerSPAM dot com | Date: | Sat, 09 Mar 2002 15:40:11 +0000 |
| Subject: | note 19744 added to ref.regex | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-27551@lists.php.net to get a copy of this message | ||
Sadly, the Posix regexp evaluator (PHP 4.1.2) does not seem to support multi-character coallating
sequences, even though such sequences are included in the man-page documentation.
Specifically, the man-page discusses the expression "[[.ch.]]*c" which matches the first
five characters of "chchcc". Running this expression in ereg_replace generates the error
"Warning: REG_ECOLLATE". (Running an equivalent expression with only one character
between the periods does work, however.)
Multi-character coallating sequences are not supported!
This is really, really too bad, because it would have provided a simple way to exlude words from the
target.
I'm going to go learn PCRE, now. :-(
--
http://www.php.net/manual/en/ref.regex.php
http://master.php.net/manage/user-notes.php?action=edit+19744
http://master.php.net/manage/user-notes.php?action=delete+19744
http://master.php.net/manage/user-notes.php?action=reject+19744