Regex Tester

Test regular expressions with highlighted matches and group inspection.

Result (0)
Private & SecureRuns in your browser — nothing is uploaded
Easy to UseJust paste or type — instant results
Free ForeverUnlimited use, no sign-up
Fast & ReliableAdvanced tech, fast and stable

A regular expression is a pattern for finding text: the shape of an email, a date, a price, a code. This lets you test a pattern against your text and see exactly what it matches, live as you edit. Everything runs in your browser, so your text never leaves your device.

Test a pattern, see matches

How to use: Regex Tester

  1. 1Enter inputPaste the target text you want to test into the input box.
  2. 2Set optionsEnter your regular expression and set flags such as g, i and m.
  3. 3ProcessSee matches highlighted live along with each capture group.
  4. 4Get resultTweak the pattern until matches look right, then copy it.

Common use cases

Test a pattern before you use itCheck that your expression matches what you expect before putting it into code.
Pull matches out of textFind every email, number or tag inside a block of text.
Debug a pattern that isn't matchingTweak the expression and watch the matches update until it's right.
Learn how regex behavesTry patterns on real text to see how groups and repetition work.

Good to know

Engines differ a littleThis uses your browser's JavaScript engine; other languages and tools vary slightly in supported syntax and flags, so test in the engine you'll actually run.
Watch out for greedy matchingBy default a pattern grabs as much as it can; if it matches too much, make the relevant part non-greedy.
Escape special charactersSymbols like the dot or brackets have special meaning in a pattern, so escape them when you mean the literal character.

Frequently Asked Questions