Regular expression tester

Local processing · No uploads

Test JavaScript regex with matches, UTF-16 offsets, captures and replacement previews.

Positions are zero-based UTF-16 unit offsets.

Enter content, then choose an action.

Usage & limits

How to use

  1. Fill the labeled inputs and settings or insert an example, which waits for explicit execution.
  2. Choose the primary action and inspect status, result or errors. Cancel and edit when needed.
  3. Explicitly copy or download the complete current result. Execute again after changing input or settings.

Input and output examples

Input and result example
Example input
(a)(b) · g · $2-$1
ab ab
Expected output
b-a b-a

Everyday tool dependency licenses and sources

Formats and limits

  • Enter a pattern body without slash delimiters. Supported flags are g/i/m/s/u/y, without repetition. Global, sticky, numbered/named capture and replacement-template behavior follows native JavaScript.
  • Offsets count zero-based UTF-16 units in the original sample. Empty global matches advance according to Unicode mode. Maximum 1000 matches, shown 50 per page, with inert text highlighting.
  • Sample is limited to 1 MiB, pattern to 8 KiB, replacement to 64 KiB and complete serialized result to 8 MiB. Compilation, matching and replacement run in a terminable Worker with a 5-second deadline. TXT contains the full replacement.

Content is processed in this page, without uploads or site history. First load and on-demand assets need a network. Clear or leave to release tool content; browser-managed restoration is outside the tool’s control.

Browser agent usage

These are interactive browser tools, not HTTP computation APIs. Computation requires JavaScript; initial page and on-demand asset loading need a network.

Input method
Use labeled input, mode and option controls. Keep content, filenames and settings in this page, outside URLs and feedback.
Reading results
Confirm success in the status area before reading current results. TXT/copy provide complete output; the display may be a preview.

Supported operations

  • Explicitly execute or insert an example
  • Cancel, copy, download or clear

Locate inputs and buttons by their page labels. After an explicit action, wait for the status to finish before reading the current result. Fix failed input first; do not reuse old results after changing input or settings.

Common questions

Does it use Java or Python regex?

It uses browser JavaScript RegExp syntax. Other language extensions may need changes.

Feedback and suggestions

Leave a problem or suggestion for this tool.

Tool inputs stay local. Only text you explicitly enter in feedback is sent to a separate service and may become public after review. Email stays private to the maintainer.

Account-free feedback is not enabled yet. You can still use GitHub Issues (a GitHub account is required).

GitHub Issues ↗

Content reviewed:

Search tools