Regex Tester

Test JavaScript regular expressions in a worker with a hard time budget.

Regex Tester workspace

Up to 200,000 input characters, depth 40 and 20,000 JSON nodes. Processing stays on this device; no input is stored. Use an example to inspect the accepted input structure.

Enter input or use the example.

How to use Regex Tester

Provide pattern, flags and text in a JSON object. Add replacement to get a replacement preview.

Supported workflow and acceptance requirements

Interactive JS regex and flags tester; match offsets, groups, replacement preview, zero-length handling. Run matching in cancelable Web Worker/time budget to limit ReDoS.

Limits and local processing

Matching is terminated after 250 ms. Patterns allow up to 1,000 characters, source text 100,000, and results 1,000 matches. Groups and offsets use JavaScript UTF-16 indexing. Workers are required. Input is processed on this device without uploads. Browser workers and Web Crypto are required for the applicable tools; clipboard access depends on browser support.

Related tools