Country Specific USA

US State Abbreviation

Matches standard 2-letter US state abbreviations

/^(A[KLRZ]|C[AOT]|D[CE]|FL|GA|HI|I[ADLN]|K[SY]|LA|M[ADEINOST]|N[CDEHJMVY]|O[HKR]|PA|RI|S[CD]|T[NX]|UT|V[AT]|W[AIVY])$/

Type in the box above to test if your input matches the regex pattern.

Test Cases

NY
CA
TX
FL
XX
USA
ny
Cal

Tags

#usa #address #state