Regex Tester

Test and validate regular expressions with real-time highlighting and reference.

/
/gm
Javascript Flavor

scienceTest String

The quick Brown Fox jumps over the lazy Dog. Regex is very powerful. zekhoi labs 2024.
0 matches|0ms
school

Cheat Sheet

Quick Reference

Character Classes

  • .Any character
  • \wWord char
  • \dDigit
  • \sWhitespace
  • [abc]Any of a, b, or c
  • [^abc]Not a, b, or c

Quantifiers

  • *0 or more
  • +1 or more
  • ?0 or 1
  • {3}Exactly 3
  • {3,}3 or more

Anchors

  • ^Start of string
  • $End of string
  • \bWord boundary

Groups

  • (...)Capture group
  • (?:...)Non-capturing
info

Match Info

Matches are highlighted in the text area.

Complex capture groups are not yet fully visualized in this simple highlighter.