⚙ Text Mechanic

Regex Pattern Extractor

Extract all occurrences, capture groups, emails, URLs, or custom regex patterns from text into clean lists. Fast, private, and runs in-browser.

How to Use Regex Pattern Extractor

  1. Paste Raw Data: Paste unstructured text, logs, or HTML into the editor.
  2. Input Regex Pattern: Provide a regular expression pattern or select a preset (Emails, URLs, IP Addresses).
  3. Extract Matches: Instantly view all matches separated line-by-line in the output box.

Key Features & Capabilities

  • Preset Patterns: Built-in one-click patterns for Emails, URLs, IPv4 Addresses, Phone Numbers, and Dates.
  • Capture Group Extraction: Extract specific capture groups rather than the entire match string.
  • Unique Matches Option: Automatically deduplicate extracted matches on the fly.
  • 100% In-Browser Privacy: Your text never leaves your device or touches an external server.

Common Use Cases

  • Data Scraping Cleanup: Extract all email addresses or URLs from messy HTML source code.
  • Log Parsing: Pull all UUIDs, timestamps, or IP addresses out of server diagnostic logs.

Frequently Asked Questions

Does this tool support standard JavaScript RegEx flags?
Yes, it supports global (g), case-insensitive (i), and multi-line (m) regex matching.
Can I extract only the text inside parentheses?
Yes, select the Capture Group option to extract group 1 or specific group captures.

Related Text Utilities

Find and Replace Text
Locate and replace strings or regular expressions across your text
Delimited Column Extractor
Extract specific columns from CSV, TSV, or custom delimited datasets
Remove Lines Containing...
Filter out or retain only lines containing a specific keyword or regex pattern
Split Text by Delimiter
Split single string into lines based on custom delimiters or symbols