[Solved] RegEx for a 6 character long string that consists of four letters followed by 2 numbers

[ad_1]

You could this regex

^[a-z]{4}\d{2}$

If you need uppercase letters too

^[A-Za-z]{4}\d{2}$

or with case insentive flag

^[A-Z]{4}\d{2}$
  1. ^ Beginning of string
  2. $ end of string
  3. [a-z]{4} Matches 4 letters
  4. \d{2} Matches 2 numbers

0

[ad_2]

solved RegEx for a 6 character long string that consists of four letters followed by 2 numbers