TTools SmartONLINE TOOLS

Regex tester

Test JavaScript regular expressions and inspect match positions and groups.

Input

JavaScript RegExp syntax. Use g for all matches. Up to 2,000 pattern characters, 200,000 input units and 500 matches. A separate worker stops after 2 seconds. Match positions use UTF-16 indices.

Regex tester — What this tool does

Test JavaScript regular expressions and inspect match positions and groups.

Input and output
Text → JSON
Options you can adjust
Pattern (without / delimiters) · Flags

How to use it

  1. Paste your input or use the example. Choose the input format before running.
  2. Adjust the available settings to suit the result you need. Your choices apply when you run the tool. Pattern (without / delimiters) · Flags.
  3. Run the tool, review the result and any warnings, then download or copy the output. Larger files may take longer on your device.

Limits and output quality

JavaScript RegExp syntax. Use g for all matches. Up to 2,000 pattern characters, 200,000 input units and 500 matches. A separate worker stops after 2 seconds. Match positions use UTF-16 indices.

Frequently asked questions

What result will I get?

JSON. Test JavaScript regular expressions and inspect match positions and groups.

Are my files uploaded to a server?

Files and text are processed in this browser tab, without server uploads or analytics. Language and theme preferences are saved on this device. Closing the tab releases the working files. On the first visit, the site uses the hosting provider’s approximate IP country when available, then your browser language. A language cookie remembers your choice for one year. You can change it at any time.

Will this change my original file?

No. The tool creates a separate result for you to review and download. Keep the original until you have checked the exported content.

Enter input to begin.

Privacy

Files and text are processed in this browser tab, without server uploads or analytics. Language and theme preferences are saved on this device. Closing the tab releases the working files. On the first visit, the site uses the hosting provider’s approximate IP country when available, then your browser language. A language cookie remembers your choice for one year. You can change it at any time.