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 cQuantifiers
* 0 or more+ 1 or more? 0 or 1{n} Exactly n{n,} n or more{n,m} Between n and mAnchors & Groups
^ Start of string/line$ End of string/line\b Word boundary(abc) Capture group(?:abc) Non-capturing groupa|b a or b007
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.