Categories The FBI News Review Regular Expression to validate xx-xxxxxxx or xxx-xx-xxxx Post author By Post date September 5, 2026 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