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
input field with xxx-xxxxxxx-yy need to be validated I am trying with a validation for an number format and the number should be automatically replaced in the character while typing The format is: xxx-xxxxxxx-yy AND in another field "xx-xx-xx-xxx-x