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..
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
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
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 =