Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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.


Raghav
MVP 2023
LinkedIn

@Rajyalakshmi was this regular expression helpful?


Raghav
MVP 2023
LinkedIn

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


Raghav
MVP 2023
LinkedIn