The Story Circuit Header LogoThe Story Circuit
No saved patterns

Matches

No matches

Preview highlighted

Type or paste text here to test your regex. Example: hello world 123 hello.

Regex Tester & Debugger

Test and debug regular expressions with live highlighting, group inspection, replace-preview, and pattern management - all in your browser.

How to use the tool

  1. Enter a pattern. Type your regex in the pattern field. Use flags to control behavior (g,i,m,s,u,y).
  2. Paste test text. The tester highlights all matches and shows capture groups live.
  3. Use replace. Test replacement strings using $1, $2, $& and preview the output before applying.
  4. Save patterns. Save commonly used regexes locally and export them for sharing or backup.

Frequently Asked Questions

Which regex engine does this use?
This tester uses JavaScript's RegExp engine in the browser. Behavior may vary for PCRE, Python, or other flavors.
Is my data private?
Yes - all testing runs locally; nothing is uploaded unless you export patterns.
Can I save patterns?
Yes - save, load, export and import patterns using JSON files.

Related Developer Tools

Regex Tester & Debugger | Test and Visualize Regular Expressions