JavaScript Regex Tester

Your workspaceProcessed on your device

Enter the pattern without slash delimiters. Use g for all matches, i for case-insensitive matching and d for capture positions.

A few things to know.

Runs in a cancellable worker with a three-second limit. Accepts 4,096 pattern and 100,000 subject UTF-16 units. Reports stop at 500 matches or a capture budget. Browser support determines available flags.

  1. Enter the pattern body without slash delimiters and enter JavaScript flags separately.
  2. Paste test text and select Test pattern. Inspect highlighted matches and expand the pattern tree.
  3. Read the indexed and named groups. Include d in the flags for capture positions and download the match report as JSON.