I have the following phone numbers and I need a regex that validate only numbers with format xxx-xxx-xxxx
281-388-0388 OK
281 388 0388 NO OK
(281)-388-0388 NO OK
(281)-388-0388 NO OK
I have this regex \(?\d{3}\)?-? *\d{3}-? *-?\d{4}
but all the above four number will be valid.