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.

Phone number validation on catalog form

raj99918
Tera Contributor

Hi ,

 

Phone number validation on form it should contains only numbers with - and + 

 

How can I achieve this one from regex?

 

Thanks 

10 REPLIES 10

try this one

/^\+?\d+(\s*-?\s*\d+)*$/