Text

Regex Tester

Build and debug JavaScript regular expressions with real-time match highlighting, capture groups, and flag support. Includes a quick-reference cheatsheet for common patterns.

ad slot · leaderboard
//
Match preview (2)
Reach me at alice@example.com or bob@dev.io
Matches
[0] alice@example.com · groups: alice, example.com
[1] bob@dev.io · groups: bob, dev.io
Cheatsheet
. any char    \d digit    \w word    \s space
^ start       $ end       \b boundary
* 0+   + 1+   ? optional  {n,m} range
(abc) group   (?:abc) non-capture
[abc] set     [^abc] not  a|b alt
Flags: g global, i case-insensitive, m multiline, s dotall
ad slot · rectangle

Related tools

ad slot · leaderboard