Skip to content

Instantly share code, notes, and snippets.

@tdelam
Created May 25, 2015 14:06
Show Gist options
  • Save tdelam/e542530cdaf39a0f2947 to your computer and use it in GitHub Desktop.
Save tdelam/e542530cdaf39a0f2947 to your computer and use it in GitHub Desktop.
For C#[##]-DW##-MP###[-D][d]
C\d\[\d{2}\]-[A-Z]W\d{2}-MP\d{3}\[-[A-Z]\]\[[a-z]\]
For B#[##]-FD###-FL###[-D][d]:
B\d\[\d{2}\]-F[A-Z]\d{3}-FL\d{3}\[-[A-Z]\]\[[a-z]\]
For T#[##]-MP###[-D][d]
T\d\[\d{2}\]-MP\d{3}\[-[A-Z]\]\[[a-z]\]
Characters in [ ] are optional
d – variable lowercase alpha character
D – variable uppercase alpha character
# – variable numeric character with leading zeros if number of digits is less than number of consecutive symbols
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment