Answers for "regex to convert phone format"

10

phone number regex

^(\+\d{1,2}\s)?\(?\d{3}\)?[\s.-]\d{3}[\s.-]\d{4}$
Posted by: Guest on November-28-2019
0

phone regex

^\s*(?:\+?(\d{1,3}))?[-. (]*(\d{3})[-. )]*(\d{3})[-. ]*(\d{4})(?: *x(\d+))?\s*$
Posted by: Guest on April-30-2021

Browse Popular Code Answers by Language