c# - 15-250 regex validation -


i'm trying build regular expressions validate textbox on c# wpf. build following validate number 6 3600:

^([6-9]|[1-9][0-9]{1,2}|[12][0-9]{3}|3[0-5][0-9]{2}|3600)$  

now need validate 15 250. new on regex , having hard time getting it.

thanks

a direct translation be:

^(1[5-9]|[2-9][0-9]|1[0-9]{2}|2[0-4][0-9]|250)$ 

split 1[5-9] or 15-19, [2-9][0-9] or 20-99, 1[0-9]{2} or 200-199, 2[0-4][0-9] or 100-249, 250.


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -