Advertisement

Pattern library / Dates & Time

Regex to Match European Dates (DD/MM/YYYY)

European day-first format with range limits on day (01-31) and month (01-12). Use when GA4 or BigQuery data is stored day-first.

The pattern
^(0[1-9]|[12][0-9]|3[01])/(0[1-9]|1[0-2])/[0-9]{4}$
Load this pattern into the tester →

How the pattern works

Test it: match & no-match examples

Every row is loaded straight into the tester — click Try to see the match live:

InputResultWhy
28/10/2026Matchvalid EU dateTry →
31/12/1999Matchyear endTry →
32/10/2026No matchday 32 rejectedTry →
28/13/2026No matchmonth 13 rejectedTry →
2026-10-28No matchwrong separator/orderTry →

Where to use it

JavaScript

const re = /^(0[1-9]|[12][0-9]|3[01])\/(0[1-9]|1[0-2])\/[0-9]{4}$/;
re.test('28/10/2026');  // true

Python

import re
re.match(r'^(0[1-9]|[12][0-9]|3[01])/(0[1-9]|1[0-2])/[0-9]{4}$', '28/10/2026')

Common mistakes

Test this pattern on your own data
Paste it into the free tester with your real strings — nothing leaves your browser.
Open the regex tester →

FAQ

For GA4-specific patterns, see the GA4 regex cheat sheet, the page path regex guide, the event filter regex guide, the GA4 regex match types, the custom channel grouping guide and RE2 vs PCRE. Browse the full regex pattern library.