Regex Match Extractor
Extract full matches or one capture group, with optional deduplication.
Processing locally…
Your input is processed locally in this browser tab.
How to use Regex Match Extractor
Enter a regular expression with or without capture groups.
Choose Whole match or a specific Capture group (Group 1, Group 2, …) and optionally check Unique only to deduplicate.
Copy or export the extracted values one per line.
Frequently asked questions
Do I need the g flag to extract every match?
No. Regex Match Extractor scans all occurrences across your text automatically even when the g flag is unchecked.
Are empty optional capture groups preserved?
Yes. When extracting a capture group, unmatched optional groups retain empty slots unless filtered or deduplicated.