Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

please give regular expression to validate my variable should start with 0 and only 3 digits

Rajyalakshmi
Mega Guru
 
8 REPLIES 8

Rajyalakshmi
Mega Guru

please give regular expression to validate my variable should start with 0 and only 3 digits.

Example :012,023,099

Try this regex:

^0[0-9]{2}$

 

For testing and creating regex use https://regex101.com/  

 


Please mark the answer correct/helpful accordingly.

@Rajyalakshmi was this regular expression helpful?

Can you please mark the relevant answer correct to close the thread.