Categories
The FBI News Review

Regular Expression to validate xx-xxxxxxx or xxx-xx-xxxx

I am trying to build a single regular expression validator that will only acccept values in the following formats:- string1 = xxx-xx-xxxx or string1 = xx-xxxxxxx How can I make the regex accept