[PHP-WIN] RE: regular expression v.s. implode/explode WAS: [PHP-WIN] Passi ng +, =, - at post and get

2004-05-21 Thread Svensson, B.A.T. (HKG)
Out of curosity: why do you think it would work better or be more direct? -Original Message- From: Gryffyn, Trevor Sent: 20-5-2004 16:50 Subject: RE: [PHP-WIN] Passing +, =, - at post and get That's gotta be one of the more creative ways around using a regular expression I've ever seen..

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

[PHP-WIN] Re: Regular expression

2001-11-14 Thread _lallous
try that: ereg("^[a-zA-Z]+") "Priya Chanu" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > Hello Everyone , > > I am a beginner with regular expression. > > I want a string to be on only alphabets both upper and > lower case. > > So to check it i do the following: > > $vorname =