RegexPlanet
Testing
Patterns
Status
Support
XRegExp Regular Expression Test Page
XRegExp Syntax
Share:
Expression to test
Regular Expression
Replacement
Options
Help
Named capture only (
n
)
Dot matches all (singleline) (
s
)
Free-spacing and line comments (extended) (
x
)
21-bit Unicode properties (astral) — Requires the Unicode Base addon (
A
)
All matches, or advance lastIndex after matches (global) (
g
)
Case insensitive (ignoreCase) (
i
)
^ and $ match at newlines (multiline) (
m
)
Matches must start at lastIndex (sticky) — Requires Firefox 3+ or native ES6 support (
y
)
Test
Results
Clear
Regular Expression
\b(0[1-9]|[12][0-9]|3[01])/(0[1-9]|1[0-2])/(\d{4})\b
Replacement
Options
Test
Input
XRegExp.replace()
XRegExp.split()[]
XRegExp.test()
XRegExp.exec().index
XRegExp.exec()[]
regex.lastIndex
1
21/12/2024
[0]:
[1]: 21
[2]: 12
[3]: 2024
[4]:
true
0
[0]: 21/12/2024
[1]: 21
[2]: 12
[3]: 2024
0
Inputs
Test
More inputs
Switch Engines
Switch Engines