Regular Expression

J

Jim Heavey

I am trying to find the regulare expression which will let me key anything
between 1-99, I thought [1-99], but this really only allows 1-9. What do I
need to do to get 1-99?
 
G

Guest

^[1-9][0-9]?

the ^ and $ anchors to the first and last char (so 990 wouldn't work, but 99 would
the first [1-9] says a digit 1 to
the second [1-9] has a ? to let it be optional (so you could have a single digit number

HTH
Tim Stal


----- Jim Heavey wrote: ----

I am trying to find the regulare expression which will let me key anything
between 1-99, I thought [1-99], but this really only allows 1-9. What do I
need to do to get 1-99
 

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

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top