Re: Have part not be replaced in regex?
| From: | Leif K-Brooks | Date: | Tue, 29 Oct 2002 00:11:12 +0000 |
| Subject: | Re: Have part not be replaced in regex? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-121796@lists.php.net to get a copy of this message | ||
I guess it wouldn't be too hard for me to switch to perl reg...
Timothy Hitchens wrote:
Can you use or know perl reg?? HiTCHO has Spoken! Timothy Hitchens (HiTCHO) tim@hitcho.com.au-- 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.-----Original Message----- From: Leif K-Brooks [mailto:eurleif@buyer-brokerage.com] Sent: Tuesday, 29 October 2002 10:01 AM To: php-general@lists.php.net Subject: [PHP] Have part not be replaced in regex? 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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php