Chris: thank you for your help. yes, I need to accept any leading zeros but it should be followed by any non-zero integer in that case.
([1-9][0-9]{0,3})|([Ff][Ee][Ww])|([Mm][Aa][Nn][Yy]) is working fine but could not enter any leading zeros. thank you. -Ram -----Original Message----- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 7:25 AM To: Struts Users Mailing List Subject: Re: [OT]Help needed in wring regular expression Ram, > Initially we had to use (\d{1,4})|(FEW)|(few)|(MANY)|(many) and eventually > we found that it is accepting 0(zero) when we enter a integer value as > 0(zero) or 0000 which is invalid. > > anybody have any idea about how to achieve the above using regular > expression. I tried finding any document to refer but I could not find one > for the above scenario. So, do you allow any leading zeros? Ever? How about this: ([1-9][0-9]{0,3})|([Ff][Ee][Ww])|([Mm][Aa][Nn][Yy]) -chris --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]