Regex Lab
Share
Clear
Toggle
Inputs
Pattern
Delimiters are optional; only enter the pattern.
global g
ignoreCase i
multiline m
dotAll s
unicode u
sticky y
\\d
\\w
\\s
.
^
$
[A-Z]
[a-z]
[0-9]
\\b
(…)
(?:…)
(?=…)
(?!…)
(?<=…)
(?<!…)
{n}
{n,}
{n,m}
+
*
?
\\1
Test text
Outputs
Matches
Live highlighting
Matches table
Indices and groups
#
Match
Index
Length
Groups
Explanation
Common tokens