Regex Tester
Test and debug regular expressions with real-time match highlighting
Flags:
gglobal
icase insensitive
mmultiline
sdotAll
Common Patterns
Online Regex Tester
Our Regex Tester allows you to test regular expressions against sample text in real-time. See all matches highlighted, with match counts and captured groups clearly displayed. Supports all JavaScript regex flags.
Regular Expression Basics
\d– Matches any digit (0-9)\w– Matches word characters (letters, digits, underscore)\s– Matches whitespace characters.– Matches any character except newline^– Matches start of string/line$– Matches end of string/line+– One or more of the preceding*– Zero or more of the preceding?– Zero or one of the preceding{n,m}– Between n and m repetitions