003.7

REGEX

001
PATTERN
/ /g
002
TEST STRING
005
REPLACE
Live preview enabled
006
QUICK REFERENCE
Character Classes
. Any character (except newline)
\d Digit (0-9)
\w Word character (a-z, A-Z, 0-9, _)
\s Whitespace
[abc] Any of a, b, or c
[^abc] Not a, b, or c
Quantifiers
* 0 or more
+ 1 or more
? 0 or 1
{n} Exactly n
{n,} n or more
{n,m} Between n and m
Anchors & Groups
^ Start of string/line
$ End of string/line
\b Word boundary
(abc) Capture group
(?:abc) Non-capturing group
a|b a or b
007
ABOUT REGEX

Regular expressions (regex) are powerful patterns for matching and manipulating text. Test your regex patterns with live highlighting and detailed match information.

Features: Live match highlighting, capture groups extraction, flags (g, i, m, s, u), replace mode with preview, URL sharing, JavaScript regex engine.