Regex Tester

Build, test, and visualize regular expressions in real time — with color-coded pattern breakdown and match highlighting.

Quick patterns

//g

Pattern Breakdown

\b\w+\b
EscapeQuantifierAnchorGroupChar classAlternationDot (.)Literal
  • \bword boundary
  • \wword char [a-zA-Z0-9_]
  • +one or more
  • \bword boundary
9 matches found in 44 characters

Match Highlight

The quick brown fox jumps over the lazy dog.

Match Details

#1"The"index 03
#2"quick"index 49
#3"brown"index 1015
#4"fox"index 1619
#5"jumps"index 2025
#6"over"index 2630
#7"the"index 3134
#8"lazy"index 3539
#9"dog"index 4043

Quick Reference

Character classes

\dDigit [0-9]
\wWord char [a-zA-Z0-9_]
\sWhitespace
.Any char (except \n)
[abc]a, b, or c
[^abc]Not a, b, or c

Quantifiers & Anchors

+1 or more
*0 or more
?0 or 1
{n,m}n to m times
^Start of line
$End of line