Regex Syntax Guide
The ultimate regex playground for Dutch developers
Core Syntax
Characters, Quantifiers & Anchors
A quick-reference breakdown of standard PCRE tokens. Use these to build precise patterns for BSN validation, postal code parsing, and IBAN extraction.
| Token | Description | Dutch Example |
|---|---|---|
\d |
Matches any digit (0-9) | 1017XX234 (BSN prefix) |
[A-Z]{2}\s\d{4}[A-Z]{2} |
Postal code format | 1017 AB (Amsterdam center) |
^ |
Start of string anchor | ^NL91 (IBAN country prefix) |
* |
Zero or more occurrences | vrij.*dag (matches "vrijdag", "vrijmorgen") |
\b |
Word boundary | \bstraat\b (isolates "straat" from "hoofdstraat") |
Applied Patterns
Production-Ready Examples
Tested against Dutch government data schemas and e-commerce checkout flows. Drop these directly into your RegExMakker workspace.
KVK Number Validation
/^\d{8}$/ targets the exact 8-digit Chamber of Commerce format. Used in the Klantenservice portal at Van der Veen Logistics to block malformed company identifiers before API submission.
Dutch Phone Number Capture
/\+31\s?(?:6|20|10|30)\d{7,8}/ handles mobile and landline routing. Deployed in the Utrecht municipal ticketing system to normalize +31 6 12345678 inputs.
PDF Invoice Extraction
/Factuurnr\.[:\s]*([A-Z]{2}-\d{4})/i isolates vendor reference codes. Integrated into the accounting pipeline at Delft Tech Solutions to auto-tag quarterly supplier statements.