Back to tools
Text

JavaScript Regex Tester Online

Test JavaScript regex with a time limit.

Local workspace
Test text0 chars
⌘ / Ctrl + Enter

JavaScript regex. Runs in an isolated worker with a 750 ms timeout; up to 1,000 matches. Indices are UTF-16 offsets.

Output

Your result will appear here

Add your input, then run the tool.

How to use this tool

Check a JavaScript regular expression against sample text without blocking the interface. Matching runs in a disposable worker with a time limit.

  1. Enter the pattern without slash delimiters and set flags.
  2. Paste the text to test.
  3. Select Test expression to inspect matches and captures.

Example

Pattern \d+ with flag g matches the digit sequences in build 42, test 7.

Does it support Python or PCRE regular expressions?

It uses JavaScript RegExp syntax, not Python or PCRE. Results are limited to 1,000 matches and 750 ms; reported indices are UTF-16 offsets. A timeout is not proof that a pattern is safe for all production inputs.

Is my input uploaded or saved?

No. Processing happens locally in your browser. Tool inputs and results remain in memory and clear when you switch tools or reload. Only theme and favorite IDs are stored. Your clipboard and web host have their own behavior, explained in the privacy policy.