I want to make brackets, space and dash mandatory in US phone number validation. I am using following regex
var phoneRegex = /^\(?([0-9]{3})\)?[ ]?([0-9]{3})[-]?([0-9]{4})$/;
I want this US phone Number format (123) 456-6789
I have tried many times but my regex is not working when I made it changed. And no question regarding US phone number regex with mandatory brackets, dashes and space any help will be appreciated