fredyounan
3/27/2015 - 12:02 AM

regex.txt

# Accepted formats are 0-3 alpha, 9 digits, and 1-3 alpha-numeric with or without spaces and dashes:
# * AAA-000-00-0000-AAA
#
# http://survivinghealthinsurance.com/2010/medicare-id-numbers-suffixes-and-prefixes/

/^([a-z]{0,3})[-\s]?(\d{3})[-\s]?(\d{2})[-\s]?(\d{4})[-\s]?([0-9a-z]{1,3})$/i