Have part not be replaced in regex?
| From: | Leif K-Brooks | Date: | Tue, 29 Oct 2002 00:00:49 +0000 |
| Subject: | Have part not be replaced in regex? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-121794@lists.php.net to get a copy of this message | ||
I'm using some regexes for swear filtering, but I have a problem. I need to look for ab[ct] and have it replaced by xyz but not replace the [ct]. I.e. it would be replaced by xyzc or xyzt. Any ideas?
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it
will be prosecuted to the full extent of the law.