Cheatsheet — every pattern
Each page below is a battle-tested regex: a real score on a corpus, a comparison against competing patterns with their sources, and honestly documented limits.
All postal codes by countryAll licence plates by countryRexact for AI assistants (MCP)
France / EU specific
- Belgian licence plate
- Belgian national register number
- Czech postal code (PSČ)
- Danish CPR number
- Dutch licence plate (kenteken)
- Dutch postal code
- Finnish personal identity code (henkilötunnus)
- French APE/NAF business activity code
- French date (dd/mm/yyyy)
- French intra-EU VAT number
- French phone number
- French postal code
- French social security number (NIR)
- German licence plate
- German postal code (PLZ)
- IBAN
- Irish Eircode
- Italian licence plate
- Polish licence plate
- Polish PESEL
- Polish postal code
- Portuguese licence plate
- Portuguese postal code
- SIREN number
- SIV license plate
- Spanish licence plate (current format)
- Spanish phone number
- Spanish postal code
- Swedish personnummer
- Swedish postal code
Universal
- ABA routing number
- Apache log line (Common Log Format)
- Argentine postal code (CPA)
- Australian phone number
- Australian postcode
- Base64 string
- BIC / SWIFT code
- Bitcoin address
- Brazilian CNPJ (alphanumeric)
- Brazilian CPF
- Brazilian phone number
- Brazilian postal code (CEP)
- Canadian postal code
- Canadian SIN
- CAS Registry Number
- Chilean RUT
- Conventional Commits message
- cron expression
- currency amount
- Decimal GPS coordinates
- DOI (Digital Object Identifier)
- domain name (hostname)
- EAN-13
- Ethereum address
- GitHub @username mention
- GLN (Global Location Number)
- GTIN-14 (ITF-14)
- hex color code
- HTML tag
- IATA airport code
- IMEI number
- Indian GSTIN (tax number)
- Indian PIN code
- IPv4 address
- IPv4 address in CIDR notation
- IPv6 address
- ISBN (ISBN-10 or ISBN-13)
- ISIN code
- ISO 4217 currency code
- ISO 8601 timestamp
- ISRC
- ISSN
- Italian Codice Fiscale
- Japanese phone number
- Japanese postal code
- JWT (JSON Web Token)
- LEI (Legal Entity Identifier)
- MAC address
- Mastercard card number
- Mexican CURP
- Minecraft (Java Edition) username
- MMSI identifier
- network port number
- Norwegian national identity number (fødselsnummer)
- npm package name
- ORCID identifier
- SemVer version number
- shipping container number (ISO 6346)
- South African ID number
- Spanish DNI/NIE
- SteamID64 (Steam)
- strong password
- Swiss postal code (PLZ/NPA)
- Twitch username
- UK NINO
- UK phone number
- UK postcode
- UK vehicle registration (current format)
- URL slug
- US phone number
- US SSN
- US ZIP code (ZIP and ZIP+4)
- UUID
- VIN (vehicle identification number)
- web URL
- Xbox Gamertag