RE: [Perl-unix-users] regex numerical matching w/comma seperated listsupport

2005-06-11 Thread Sandeep Deshpande
Your expression is expecting following patterns 1) 3 or more digits OR 2) digit/s comma digit/s First tow values fit is none of the above-mentioned criteria and hence those are failing. Thanks & Regards, Sandeep Deshpande -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED

RE: [Perl-unix-users] regex numerical matching w/comma seperated listsupport

2005-06-10 Thread Matt Schneider
I changed your regular expression to this and it worked: $value =~ /^[0-9]+$|^[0-9][0-9,]*[0-9]$/ Matt Schneider -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Friday, June 10, 2005 12:35 PM To: perl-unix-users@listserv.A