extract_url
« Back to VersTracker
Description:
Perl script to extracts URLs from emails or plain text
Type: Formula  |  Latest Version: 1.6.2@3  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: cli perl text-processing url-extraction email
Install: brew install extract_url
About:
extract_url is a Perl script designed to parse emails and plain text files to identify and extract URLs. It intelligently handles text wrapping and can decode entities, making it robust against formatting issues commonly found in email clients. The tool outputs clean URLs to standard output, making it ideal for scripting and automation workflows.
Key Features:
  • Parses text-wrapped URLs and reconstructs them correctly
  • Decodes HTML entities and escaped characters in URLs
  • Filters out non-URL text with high accuracy
  • Lightweight, dependency-free Perl script
Use Cases:
  • Processing email archives or mbox files to harvest links
  • Cleaning up text dumps to extract valid web references
  • Scripting pipelines for link validation or archiving
Alternatives:
  • urlview – Interactive URL selector for terminal; requires user input whereas extract_url is non-interactive and scriptable.
  • grep -oE – Basic regex matching lacks context awareness for wrapped URLs and entity decoding.
License: BSD-2-Clause
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, arm64_ventura, sonoma, ventura, arm64_linux, x86_64_linux
Version History
Detected Version Rev Change Commit
Sep 13, 2025 2:24pm 3 VERSION_BUMP 5376aa72
Oct 22, 2024 11:47am 3 VERSION_BUMP 059ab6ad
Oct 22, 2024 5:13am 3 VERSION_BUMP 5adc8db5