I am trying to use a validator or filter for Regex to automatically add dashes to a 10 digit phone number, like this 000-000-0000, but nothing seems to be working. The phone number continues to only output the number as 0000000000.
I have added these to the Regex Validators:
/ ^(?=[0-9]{10})([0-9]{3})([0-9]{3})([0-9]{4})$ / also tried this / ^\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}$ /