Regex Tester

Test and debug regular expressions in real-time. See matches highlighted as you type.

Examples:
//
0 matches
Matches will be highlighted here...

Quick Reference

Characters

  • . - Any character
  • \d - Digit [0-9]
  • \w - Word [a-zA-Z0-9_]
  • \s - Whitespace

Quantifiers

  • * - 0 or more
  • + - 1 or more
  • ? - 0 or 1
  • {n} - Exactly n

Anchors

  • ^ - Start of string
  • $ - End of string
  • \b - Word boundary

Groups

  • (abc) - Capture group
  • (?:abc) - Non-capture
  • a|b - Alternation

Frequently Asked Questions

What regex flavor is used?

This tester uses JavaScript's RegExp engine, which follows ECMAScript standards. Most patterns work across languages.

How do I escape special characters?

Use a backslash before special characters: \. \* \+ \? \[ \] \( \) \{} \\ \^ \$ \|

Is my data secure?

Yes. All regex processing happens in your browser. Nothing is sent to any server.