PHP 4.0 Bug #6046: preg_replace for a special pattern

From: Date: Wed, 09 Aug 2000 11:41:24 +0000
Subject: PHP 4.0 Bug #6046: preg_replace for a special pattern
Groups: php.dev 
Request: Send a blank email to php-dev+get-28243@lists.php.net to get a copy of this message
From: wico@cnh.nl Operating system: linux PHP version: 4.0 Latest CVS (09/08/2000) PHP Bug Type: Feature/Change Request Bug description: preg_replace for a special pattern hiya if you have a regex that captures more than one pattern i'd to give a argument to the function which to replace say: regex: (a)(b)(a) replace: test preg_replace("'(a)(b)(a)'", "test", "abaabaaba"); normal preg_replace will replace 'aba' with 'test' outputing: testtesttest preg_replace_pattern_no("'(a)(b)(a)'", "test", "abaabaaba", 2); replacing pattern 2 and outputting: atestaatestaatesta Greetz, Wico

« previous php.dev (#28243) next »