|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-01-21 03:18 UTC] cynic@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 06:00:02 2025 UTC |
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