Dates & Timesflags: g
Unix Timestamp
Match 10-digit Unix timestamps (seconds since epoch) for dates between 2001 and 2286.
Try it in RegexProPattern
regexJavaScript
/\b1[0-9]{9}\b/gRaw source: \b1[0-9]{9}\b
How it works
Anchored with word boundaries, matches exactly 10 digits starting with 1 — which covers epoch seconds from roughly 2001-09-09 (1 billion) to 2286.
Examples
Input
Created at 1712345678Matches
1712345678
Input
1609459200 = 2021-01-01Matches
1609459200
Input
no timestamps hereNo match
—Common use cases
- Log file timestamp extraction
- JSON API payload parsing
- Database column normalisation
- Event stream correlation