We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

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.