July 2, 2014

Condensed uppercase/lowercase Regex validation for all US/Canadian States, Provinces, and Territories

/^([Aa][ABELKPRSZabelkprsz]|[Bb][Cc]|[Cc][AOTaot]|[Dd][ECec]|[Ff][LMlm]|[Gg][AUau]|[Hh][Ii]|[Ii][ADLNadln]|[Kk][SYsy]|[Ll][Aa]|[Mm][ABDEHINOPSTabdehinopst]|[Nn][BCDEHJLMSTUVYbcdehjlmstuvy]|[Oo][HKNRhknr]|[Pp][AERWaerw]|[Qq][Cc]|[Rr][Ii]|[Ss][CDKcdk]|[Tt][NXnx]|[Uu][Tt]|[Vv][AITait]|[Ww][AIVYaivy]|[Yy][Tt])$/

No comments :

Post a Comment