/Regex/ Tester

Matches: 0
Groups: 0
/ focus  Esc clear
No matches yet

Characters

.Any character (except newline unless s flag)
\d \DDigit / Non-digit
\w \WWord char [a-zA-Z0-9_] / Non-word
\s \SWhitespace / Non-whitespace
\b \BWord boundary / Non-boundary

Quantifiers

* + ?0+, 1+, 0 or 1 (greedy)
*? +? ??Lazy versions
{n} {n,} {n,m}Exactly n, n+, between n and m

Groups & Lookaround

(abc)Capture group
(?:abc)Non-capturing group
(?<name>abc)Named group
(?=abc)Positive lookahead
(?!abc)Negative lookahead
(?<=abc)Positive lookbehind
(?<!abc)Negative lookbehind

Flags

gGlobal — find all matches
iCase insensitive
mMultiline — ^ $ match line start/end
sDotall — . matches newline