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
^[C][0-9]{2}(.[0-9]{1})?$
Replacement
Options
Test
Input
XRegExp.replace()
XRegExp.split()[]
XRegExp.test()
XRegExp.exec().index
XRegExp.exec()[]
regex.lastIndex
1
C50.1|C18
C50.1|C18
[0]: C50.1|C18
false
(null)
Inputs
Test
More inputs
Switch Engines
Switch Engines