RegEx Tester & Highlight Matcher
Build, test, and debug regular expressions with real-time match highlighting and group capturing.
| # | Match Text | Index | Length | Capture Groups ($1, $2...) |
|---|---|---|---|---|
| Enter a valid pattern to display matching list entries. | ||||
User Guide: Regular Expression Syntax Rules
Character Classes & Quantifiers
Construct filters using character matches:
\dmatches digits (0-9),\wmatches alphanumeric characters + underscore,\smatches whitespaces.+matches 1 or more,*matches 0 or more,?matches 0 or 1, and{n,m}matches between n and m repeats.[a-z]matches character ranges;[^0-9]negates a character class.
Anchors, Flags & Groups
^matches start of line,$matches end of line,\bmatches word boundaries.(abc)creates a numbered Capture Group ($1, $2), while(?:abc)creates non-capturing groups.- Flags:
gfor global all-match,ifor case-insensitive,mfor multi-line anchors.