preg_replace_callback
| From: | tJey | Date: | Thu, 04 May 2006 13:03:56 +0000 |
| Subject: | preg_replace_callback | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-235503@lists.php.net to get a copy of this message | ||
Hi. I have problem with preg_replace_callback. It seems that my pattern is bad, but I can't find any error.
Pattern : \[\s*((\d|\w|_)+)\s*\]
this pattern is intended to find strings like "[field]",
"[ fi12_eld]"...
but every time I get warning message
"Warning: preg_replace_callback(): Delimiter must not be alphanumeric or backslash in test.php on line 100"