[Solved] Regex patterns for AANNN and ANEE formats [closed]
I’m assuming you want ASCII letters and digits, but not Thai digits, Arabic letters and the like. AANNN is (?i)^[a-z]{2}[0-9]{3}$ ANEE is (?i)^[a-z][0-9][a-z0-9]{2}$ Explanation The ^ anchor asserts that we are at the beginning of the string [a-z] is what’s called a character class. It allows any chars between a and z. In a character … Read more