Click here to Skip to main content
16,017,376 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i want regular expression like 0 at first place not allowed but allowed after any digit.
Posted

u can increase range as per your requirement
^([1-9]{0,1}[0-9]{0,100})$
 
Share this answer
 
You can try the following exp: ^[1-9][0-9]*$

Please refer this link for further readings...

http://www.aivosto.com/vbtips/regex.html[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900