On 8/1/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > > This question can be termed as an OT as it is related to regex. I have a > validation criteria which says: > > a number cannot start with "000" which is 9 digits in length. > > Can somebody help me in writing a regular expression for this?
What exactly are the criteria? If its only a nine digit number that cannot start with 000 then I would look for a number which does start with 000 000\d(6) if it matches you know it's wrong. If the number of digits are variable, or you want to catch 00, 100 011, then it gets a little more difficult. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]