It will match the same text, but it will not grab the same data into $1, $2,
and $3.  The first one will assign each of these vars while the second will
only assign $1 with the last (\s+\d+).

Rob


-----Original Message-----
From: Srinivas Reddy [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 28, 2001 11:38 AM
To: Hanson, Robert; '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
Subject: pattern match 



Hi Here i have two pattern match statements can some
one tell me whether the two are same or not.

match_pattern =
{",\s*",fld,"(\s+\d+)(\s+\d+)(\s+\d+)\s*,"};

changed to the following 

match_pattern = {",\s*",fld,"(\s+\d+){3}\s*,"};
is it same or different
i think they are  not same...
thanks
srini


__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to