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

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+)*$/