Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

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.