Regex Tester
Debug JavaScript regular expressions with highlights and group details.
Highlighted matches (9)
The quick brown fox jumps over the lazy dog.
Capture groups
#1 at 0:
The- Group 1:
The
- Group 1:
#2 at 4:
quick- Group 1:
quick
- Group 1:
#3 at 10:
brown- Group 1:
brown
- Group 1:
#4 at 16:
fox- Group 1:
fox
- Group 1:
#5 at 20:
jumps- Group 1:
jumps
- Group 1:
#6 at 26:
over- Group 1:
over
- Group 1:
#7 at 31:
the- Group 1:
the
- Group 1:
#8 at 35:
lazy- Group 1:
lazy
- Group 1:
#9 at 40:
dog- Group 1:
dog
- Group 1:
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
- Enter a pattern and toggle flags (g, i, m, s).
- Paste a test string and review highlighted matches.
- Inspect capture groups for each match in the list below.
Related text tools tools
- Lorem Ipsum GeneratorGenerate placeholder paragraphs, sentences, or words for mockups.
- Word & Character CounterCount characters, words, sentences, paragraphs, and reading time.
- Case ConverterConvert text to camelCase, snake_case, kebab-case, and more at once.
- Diff CheckerCompare two texts with a line-by-line additions/deletions view.