tryregex.com - A Multi-Engine Regex Tester
JavaScript
.NET
PCRE2
RE2
Input
Examples
Copy share URL
Reset
Engine
Mode
Match
Test (true/false)
Replace
Regex pattern
Tip: JS engine also accepts
/pattern/flags
.
Common flags / options
global
ignore case
multiline
singleline (dotall)
escape literal
live update
show groups
.NET-only options (ignored by other engines)
CultureInvariant
ExplicitCapture
RightToLeft
NonBacktracking
Timeout (ms)
Max matches
Replace with
Tokens vary by engine. (.NET: $1, ${name}; PCRE2: $1, ${name}, $& ...)
Test text
Run
Copy output
Ready.
Highlighted preview
Details
Matches