Enclose a capturing group (\d) and the use prefix\${1} inside the
replacement.
Check out the PHP manual:

$string = "April 15, 2003";
$pattern = "/(\w+) (\d+), (\d+)/i";
$replacement = "\${1}1,\$3";


"Gerardo Rojas" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
I have a regular expression, that finds what i want.  The problem lies in
that I don't want to replace this pattern with another.  I want to prefix
the pattern with a character.  Any suggestions as to how I might accomplish
this?

regular expression = '/^\d\{1,2}\./'


--
Gerardo S. Rojas
mailto: [EMAIL PROTECTED]

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to