Regexp handling
| From: | Mark Rogers | Date: | Wed, 13 Dec 2000 16:55:37 +0000 |
| Subject: | Regexp handling | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-30108@lists.php.net to get a copy of this message | ||
Does PHP support regexp back references?
Eg, to pick up a quoted string:
ereg('([\'"])([a-z]*)\1', $somestring, $somearray);
If it does support this then I can't see how! I've tried all sorts of
combinations (various ways of escaping the quotes or \ char, etc) with no
success. I'm using PHP 4.
Mark.