Regex tester

Test JavaScript regular expressions against text. Inspect matches, positions and capture groups, or apply a replacement expression.

Free · No sign-up · Files stay on your device

Features

  • Enter a JavaScript pattern and flags.
  • Inspect matched text, positions and capture groups.
  • Optionally replace matches using a replacement string.

How to use this tool

  1. Paste sample text and enter the regular expression without surrounding slashes.
  2. Set flags and, if needed, enable replacement.
  3. Run the test and review the matches or replaced text.

Good to know

This tool is free without sign-up, with unlimited processing and exports within the displayed input limits.

  • Complex expressions can time out. Narrow the pattern if it returns more than 10,000 matches.

Privacy and local processing

This tool processes your input in your browser. Source files and text are not uploaded to a FormatOwl processing server. Advanced-tool access and trial balances are checked online using tool IDs, file types, sizes and page counts. Free tools do not require account authorization. Save the results you need before leaving or refreshing the page.

Read our privacy policy

Keep creating