Regex match numerical range
Posted
by gmcalab
on Stack Overflow
See other posts from Stack Overflow
or by gmcalab
Published on 2010-04-22T14:44:48Z
Indexed on
2010/04/22
14:53 UTC
Read the original article
Hit count: 289
regex
I am trying to write a simple regex to match a percentage value range 1%-100%
Is there a better way to write this?
^([1-9]|[1-9][0-9]|100)%$
© Stack Overflow or respective owner