OneTool

Regex Tester

Debug JavaScript regular expressions with highlights and group details.

Flags

Highlighted matches (9)

The quick brown fox jumps over the lazy dog.

Capture groups

  1. #1 at 0: The

    • Group 1: The
  2. #2 at 4: quick

    • Group 1: quick
  3. #3 at 10: brown

    • Group 1: brown
  4. #4 at 16: fox

    • Group 1: fox
  5. #5 at 20: jumps

    • Group 1: jumps
  6. #6 at 26: over

    • Group 1: over
  7. #7 at 31: the

    • Group 1: the
  8. #8 at 35: lazy

    • Group 1: lazy
  9. #9 at 40: dog

    • Group 1: dog

What is this tool?

Regular expressions find and extract patterns in text. This tester compiles your pattern with the selected flags, highlights matches in the test string, and lists capture groups. Common patterns cheat sheet: email-ish [^\s@]+@[^\s@]+\.[^\s@]+ ; URL-ish https?:\/\/\S+ ; digits \d+ ; whitespace \s+ ; word boundary \bword\b ; non-greedy .+? ; multiline start/end ^ and $ with m flag.

How to use it

  1. Enter a pattern and toggle flags (g, i, m, s).
  2. Paste a test string and review highlighted matches.
  3. Inspect capture groups for each match in the list below.