RE: [PHP-WIN] Re: Regular Expression Question

2003-11-21 Thread Gerardo Rojas
ch( $aSum as $s ) { echo "string = $s "; } -- Gerardo S. Rojas mailto: [EMAIL PROTECTED] -Original Message- From: Andrei BEJENARU [mailto:[EMAIL PROTECTED] Sent: Friday, November 21, 2003 9:50 AM To: [EMAIL PROTECTED] Subject: [PHP-WIN] Re: Regular Expression Ques

[PHP-WIN] Re: Regular Expression Question

2003-11-21 Thread Andrei BEJENARU
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 expre