I can't get REGEX formula to work for a phone number

I just want to control a phone number input to the format 123-456-7890. I’ve tried ^\D?(\d{3})\D?\D?(\d{3})\D?(\d{4})$ but I keep getting the invalid format error message.

Thanks,
Cynthia

Community Page
Last updated: