preg_replace help
Posted: Tue May 06, 2003 10:33 am
Is there a way to count the number of matches in preg_replace. Something like
So that $out would contain "a1a2a3a4...".
Is this possible with using only regexp?
Code: Select all
<?php
$out = preg_replace("a","a \\something","aaaaaaaaa");
?>Is this possible with using only regexp?