Regular Expression question

  • Thread starter Thread starter Scott
  • Start date Start date
S

Scott

All I need is a Regular expression that checks to make sure the value is a
number that is under 9 characters long (a number between 1 and 999999999).
It is not a required field but if the user enters something it has to meet
this criteria. Also, it has to allow leading zeros.

I've been digging through the regular expressions syntax files in MSDN for
hours and am totally confused. Can anyone tell me what the expression would
be for this?

Thanks,

Scott
 
Look for "Regular Expression Syntax" for JScript (MSDN documentation). I
think this is a readable document.

You would use something like: [0-]{0,9}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top