woori.today
Family Sites

Regex Tester

Check regular expression matches against sample text.

How it works

Applies a `/pattern/flags` expression from the first input to the sample in the second and runs the search in a browser Worker, reporting each match and start index.

A practical use

Enter `/\d+/g` and sample `A12` to get `12 (index 1)`. If `g` is absent, the tester adds it to find multiple matches.

When something goes wrong

Pattern limit: 200 characters; sample: 20,000; execution: 250ms. Nested repetition and backreferences are rejected, and at most 100 matches are listed. Check delimiters, flags, and input lengths.

Tool-specific question

Does it replace or highlight matches?

No. It lists up to 100 matched strings with their starting indexes.

How to use

  1. Enter an input or choose settings; you can start with pattern \d+ + sample A12.
  2. Enter code or structured data, then set the format, pattern, or conversion direction.
  3. Run Regex Tester, then compare the result with the example match 12 before copying or downloading it.

Options

The input area shows the accepted format and available controls for this tool.

Privacy

No. Your input is handled in the browser you are using. Privacy

Related tools