Regex Tester

Test and debug regular expressions with real-time matching

//

Matches (0)

About Regular Expressions

Flags: g (global), i (case-insensitive), m (multiline), s (dotAll), u (unicode), y (sticky)

Common Patterns: \\w+ (word characters), \\d+ (digits), [a-z]+ (letters), .* (any character)

Groups: Use parentheses () to create capture groups for extracting specific parts of matches.

Anchors: ^ (start), $ (end), \\b (word boundary) help position your pattern.

How to use the Regex Tester

  1. Enter your regular expression and choose its flags.
  2. Paste sample text to test against.
  3. Matches are highlighted as you type, so you can adjust the pattern until it behaves.

Frequently asked questions

Which regex flavour does this use?
It runs your pattern with your browser’s JavaScript regular expression engine, so results match what you would get in JavaScript code.
What do the g, i and m flags do?
g finds all matches instead of just the first, i ignores letter case, and m lets ^ and $ match at the start and end of each line.
Is my data uploaded anywhere?
No. This tool runs entirely in your browser, so what you type or paste stays on your device and is not sent to Devity.

More free tools