Regex Extractor — Extract Text with Regex Online
Pull emails, URLs, phone numbers, dates, and any custom pattern out of text with a regular expression. Get every match in a table with capture-group columns, dedupe, count, and export to CSV, JSON, or plain lines — 100% in your browser, nothing uploaded.
Matches in source
Match table
Value frequency
How many times each extracted value appeared, most frequent first.
Export results
Related regex tools
Frequently asked questions
How do I extract all matches from text with a regex?
\d+ against Order 42 shipped extracts 42 at index 6. You can then dedupe, count, or export the list.How do I extract email addresses from text?
[\w.+-]+@[\w-]+\.[\w.]+. Against Contact alice@example.com or bob@test.org, and alice@example.com again. it extracts 3 matches at indexes 8, 29 and 47; the dedupe toggle reduces that to 2 unique addresses. Use Copy or Export to get the clean list.Can I extract capture groups into separate columns?
(?<year>\d{4})-(?<month>\d{2})-(?<day>\d{2}) against Launch 2026-10-09 and 2025-01-01 produces columns year=2026, month=10, day=09 for the first match. CSV export keeps those columns too.What export formats are supported?
{match, index, groups, named} objects). All three are also downloadable as .txt, .csv, and .json files.What does the dedupe toggle do?
#[A-Za-z0-9_]+ against #ai #AI #ai #seo, dedupe leaves 3 values: #ai, #AI, and #seo. Enable case-insensitive dedupe and #ai and #AI collapse to one, giving 2. The frequency view also shows how many times each value appeared.Which flags are supported?
g (global — always on for extraction, since the tool lists all matches), i (case-insensitive), m (multiline, so ^/$ work per line), and s (dot-all, so . also matches line breaks). Clicking a flag button explains what it does.Why do I get “Invalid regular expression”?
( reports Invalid regular expression: /(/g: Unterminated group. Common causes are unclosed brackets or parentheses, a stray quantifier like *abc, or an unescaped special character.Is my text uploaded anywhere?
What is the difference between this and the Regex Tester?
Can I extract URLs or phone numbers too?
https?://(?:www\.)?[A-Za-z0-9.-]+\.[A-Za-z]{2,}(?:/[^\s<>"']*)? against See https://example.com/a and http://x.org, ok extracts exactly https://example.com/a and http://x.org without the trailing comma. The phone preset extracts +1 (555) 123-4567 and 021-555-8899 from a contact block. For URL-only scraping with href parsing, the dedicated Regex URL Extractor goes further.Free tool by NRTechStudio