Test, validate and match regular expressions
This regex validates city and state pairs in formats like 'Boston, MA' or 'Seattle, WA'. It matches a city name (any characters) followed by a comma, optional whitespace, and a valid US state abbreviation (case-insensitive). Useful for form validation, address parsing, and data cleanup.