Regular Expressions
Regular Expressions (regex, regexp) provide a flexible and concise means to match strings of text. They can be used in macros. We have listed a few examples below.
Passport
- USA
(("P" USA~1 [0-9]{7,10}) OR ("P" USA*)) - GBR
(pasaporte~2 or passport~1 or passeport~2) and ((united~1 kingdom~1 "of") or (northern~1 ireland~1) or ("P" GBR*)) - NLD
((NLD Nederlandse~2) OR ("P" NLD~1 nederlandse~2) OR ("P" NLD*)) OR ((paspoort~1) p/100 1 of {"JAN/JAN"~1, "FEB/FEB"~1, "MAA/MAR"~1, "MAR/MAA"~1, "APR/APR"~1, "MAY/MEI"~1, "MEI/MAY"~1, "JUN/JUN"~1, "JUL/JUL"~1, "AUG/AUG"~1, "SEP/SEP"~1, "OCT/OKT"~1, "OKT/OCT"~1, "NOV/NOV"~1, "DEC/DEC"~1})
Drivers License
- NLD
(((driving~1 licence~1) or drivinglicence~4 or (*permis de conduire*) or (permis~1 de conduire~1) or fuhrerschein~2 or rijbewijs~1) p/150 ((gemeente~2) or [0123][0-9].[01][0-9].[12][0129][0-9][0-9]) or [0-9]{10})
SSN
- USA
(Social Security* or Soc Sec or SSN* or SSNS or SSID) w/2 [0-9]{3}-[0-9]{2}-[0-9]{4}
Credit Card
-
American Express, Diners Club - Carte Blanche, Diners Club - International, Diners Club - USA & Canada, Discover, InstaPayment, JCB, Maestro, MasterCard, Visa, Visa Electron, China UnionPayNote: Only formats that have no spaces
([3][4][0-9]{13}) or ([3][7][0-9]{13}) or ([3][0][0][0-9]{11}) or ([3][0][1][0-9]{11}) or ([3][0][2][0-9]{11}) or ([3][0][3][0-9]{11}) or ([3][0][4][0-9]{11}) or ([3][0][5][0-9]{11}) or ([3][6][0-9]{12}) or ([3][8][0-9]{12}) or ([3][9][0-9]{12}) or ([5][4][0-9]{14}) or ([6][0][1][1][0-9]{12}) or ([6][2][2][1][0-9]{12}) or ([6][2][2][2][0-9]{12}) or ([6][2][2][3][0-9]{12}) or ([6][2][2][4][0-9]{12}) or ([6][2][2][5][0-9]{12}) or ([6][2][2][7][0-9]{12}) or ([6][2][2][8][0-9]{12}) or ([6][2][2][9][0-9]{12}) or ([6][4][4][0-9]{13}) or ([6][4][5][0-9]{13}) or ([6][4][6][0-9]{13}) or ([6][4][7][0-9]{13}) or ([6][4][8][0-9]{13}) or ([6][4][9][0-9]{13}) or ([6][5][0-9]{14}) or ([6][0][1][1][0-9]{15}) or ([6][2][2][1][0-9]{15}) or ([6][2][2][2][0-9]{15}) or ([6][2][2][3][0-9]{15}) or ([6][2][2][4][0-9]{15}) or ([6][2][2][5][0-9]{15}) or ([6][2][2][7][0-9]{15}) or ([6][2][2][8][0-9]{15}) or ([6][2][2][9][0-9]{15}) or ([6][4][4][0-9]{16}) or ([6][4][5][0-9]{16}) or ([6][4][6][0-9]{16}) or ([6][4][7][0-9]{16}) or ([6][4][8][0-9]{16}) or ([6][4][9][0-9]{16}) or ([6][5][0-9]{17}) or ([6][3][7][0-9]{13}) or ([6][3][8][0-9]{13}) or ([6][3][9][0-9]{13}) or ([3][5][2][0-9]{13}) or ([3][5][3][0-9]{13}) or ([3][5][4][0-9]{13}) or ([3][5][5][0-9]{13}) or ([3][5][6][0-9]{13}) or ([3][5][7][0-9]{13}) or ([3][5][8][0-9]{13}) or ([3][5][2][0-9]{16}) or ([3][5][3][0-9]{16}) or ([3][5][4][0-9]{16}) or ([3][5][5][0-9]{16}) or ([3][5][6][0-9]{16}) or ([3][5][7][0-9]{16}) or ([3][5][8][0-9]{16}) or ([5][0][1][8][0-9]{12}) or ([5][0][2][0][0-9]{12}) or ([5][0][3][8][0-9]{12}) or ([5][8][9][3][0-9]{12}) or ([6][3][0][4][0-9]{12}) or ([6][7][5][9][0-9]{12}) or ([6][7][6][2][0-9]{12}) or ([6][7][6][3][0-9]{12}) or ([5][0][1][8][0-9]{15}) or ([5][0][2][0][0-9]{15}) or ([5][0][3][8][0-9]{15}) or ([5][8][9][3][0-9]{15}) or ([6][3][0][4][0-9]{15}) or ([6][7][5][9][0-9]{15}) or ([6][7][6][2][0-9]{15}) or ([6][7][6][3][0-9]{15}) or ([5][1][0-9]{14}) or ([5][2][0-9]{14}) or ([5][3][0-9]{14}) or ([5][5][0-9]{14}) or ([2][2][0-9]{14}) or ([2][3][0-9]{14}) or ([2][4][0-9]{14}) or ([2][5][0-9]{14}) or ([2][6][0-9]{14}) or ([2][7][0-9]{14}) or ([4][0-9]{12}) or ([4][0-9]{15}) or ([4][0-9]{18}) or ([4][0][2][6][0-9]{12}) or ([4][1][7][5][0-9]{10}) or ([4][5][0][8][0-9]{12}) or ([4][8][4][4][0-9]{12}) or ([4][9][1][3][0-9]{12}) or ([4][9][1][7][0-9]{12}) or ([6][2][0-9]{14}) or ([6][2][0-9]{17})
Birth Date
- USA
([0-3][0-9]?[0-3][0-9]?[12][09][0-9]{2}) or (((1 of {jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec} or (1 of {january, february, march, april, may, june, july, august, september, october, november, december})) w/1 [0-9]{1,2}) w/1 [12][09][0-9]{2}) w/5 (birth* or born or dob)
IP Address
- *[1-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}*
Personal Identity
- (name w/5 (((((((address OR street) OR state) OR city) OR zip) OR phone) OR birth*) OR (name AND (2 of {employer,occupation,start date,hire date,driver* license,account no,account number,gender,ethnic*,bank,work experience,social security,ssn,ssn#}))))
IBAN
- International Bank Account Number
[a-z]{2}[0-9]{2}[a-z0-9]{4}[0-9]{7}[a-z0-9]{0,16}