Skip to content

Instantly share code, notes, and snippets.

@jasiek
Created December 29, 2011 10:49
Show Gist options
  • Save jasiek/1533493 to your computer and use it in GitHub Desktop.
Save jasiek/1533493 to your computer and use it in GitHub Desktop.
(?<ltr>[ABCEGHJKLMNPRSTVXYWZ]){0}
(?<num>[0-9]){0}
(?<fsa>\g<ltr>\g<num>\g<ltr>){0}
(?<ldu>\g<num>\g<ltr>\g<num>){0}
(?<cpc>\g<fsa> \g<ldu>){0}
^\d{5}|\g<cpc>$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment