dojox/validate/regexp.us (version 1.10)

See the dojox/validate/regexp.us reference documentation for more information.

Method Summary

  • state(flags) A regular expression to match US state and territory abbreviations

Methods

state(flags)

A regular expression to match US state and territory abbreviations

Parameter Type Description
flags Object
Optional
  • flags.allowTerritories Allow Guam, Puerto Rico, etc. Default is true.
  • flags.allowMilitary Allow military 'states', e.g. Armed Forces Europe (AE). Default is true.
Returns:string
Error in the documentation? Can’t find what you are looking for? Let us know!