regex - Regular Expression for recognizing non-negative values 1..99 -


i'm looking regular expression can accept value 1 99 , not accept negative values. far, have:

"regex":/^[a-za-z0-9]{3}[0-9]{6,}$/, 

this should work:

[1-9][0-9]? 

if want whole string number, need ^$ included:

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

that depends whether whole regexp, or want part of bigger regexp.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -