Regular Expression Tester
Write a regex pattern, set flags, paste your test string, and see live match highlighting with captured groups.
/
/
Match Preview
Matches
Character Classes
. — Any character except newline\w — Word char [a-zA-Z0-9_]\d — Digit [0-9]\s — Whitespace\W \D \S — Negated versions[abc] — Character set[^abc] — Negated set[a-z] — RangeAnchors
^ — Start of string/line$ — End of string/line\b — Word boundaryQuantifiers
* — 0 or more+ — 1 or more? — 0 or 1 (optional){n} — Exactly n{n,} — n or more{n,m} — Between n and mGroups
(abc) — Capture group(?:abc) — Non-capturing group(?<name>abc) — Named groupa|b — Alternation (a or b)Lookahead / Lookbehind
(?=abc) — Positive lookahead(?!abc) — Negative lookahead(?<=abc) — Positive lookbehind(?<!abc) — Negative lookbehind