commonregex
Find all dates, times, emails, phone numbers, links, emails, ip addresses, prices, bitcoin address, and street addresses in a string.
What it is and what it does
CommonRegex is a regex-based text parser that extracts structured data—dates, times, emails, phone numbers, URLs, IP addresses, prices, and similar patterns—from unstructured strings. It provides a simple object-oriented interface: instantiate a CommonRegex object with text, then access properties like .emails, .phones, .dates to retrieve matches. Alternatively, pass text to individual methods on a reusable parser instance.
The package is abandoned and has received no updates since 2014. It carries no runtime dependencies, making installation lightweight, but the regex patterns are fixed and English/US-specific. For modern use, you should verify that its patterns handle current URL schemes, email formats, and phone number conventions in your target region, and consider whether a maintained alternative better suits your needs.
Use it for:
- Extract contact information (emails, phone numbers) from user-submitted text or documents for validation or indexing.
- Parse timestamps and dates from log files or chat messages to identify when events occurred.
- Identify URLs in social media posts or user comments to detect linked resources.
- Scrape structured data like IP addresses or prices from plain-text reports or web content.
- Validate or categorize text fields in forms by detecting whether they contain recognizable patterns.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Extracts dates, times, emails, phone numbers, links, IP addresses, prices, and other common patterns from text using regex.
No, unless you are maintaining legacy code that already depends on it. The package is abandoned (last release 2014, no commits since April 2023) and offers no maintenance or security updates. For new projects, use a maintained regex library or a specialized parser that handles modern formats and edge cases better. High install friction and lack of active development make this a poor choice for new work.
Install
commonregex on PyPI
pip
pip install commonregexuv
uv add commonregexpoetry
poetry add commonregexInstalling commonregex
Before you install
High install friction with no runtime dependencies. Package is abandoned—last release was August 2014, over a decade ago, with no commits since April 2023. Development status is Beta. Consider this a legacy tool; active maintenance is not expected.
License in practice
MIT license is permissive and imposes no restrictions on use, modification, or distribution.
Quickstart
from commonregex import CommonRegex
parser = CommonRegex("Email me at test@example.com or call (519)-236-2723")
print(parser.emails)
print(parser.phones)
Package is English/US specific; behavior with other locales or date formats is not supported.
Verify before relying
- Whether regex patterns remain accurate for modern email, URL, and phone number formats.
- Compatibility with current Python versions (requires_python is unspecified in metadata).
- Whether false positives or false negatives in pattern matching are acceptable for your use case.
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | abandoned — 4,368 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 90,454/month — #13,585 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Keywords: regex
Tags
More Text Processing packages
A drop-in replacement for Python's standard…
permissive · top 100 on PyPI
pyparsingpyparsing provides a library for building text…
permissive · top 1,000 on PyPI
docutilsDocutils converts plaintext documentation in…
unclear · top 1,000 on PyPI
RapidFuzzRapidFuzz provides fast fuzzy string matching…
permissive · top 1,000 on PyPI
tinycss2tinycss2 parses CSS strings into token and…
permissive · top 1,000 on PyPI
llama-parseLlamaParse parses complex documents (PDFs,…
permissive · top 1,000 on PyPI
datefinderDatefinder extracts date and time expressions…
permissive · top 5,000 on PyPI
nr-dateA pure-Python date parser using regex patterns…
permissive · top 15,000 on PyPI
stringparserExtracts values from strings using…
permissive · top 15,000 on PyPI
pyap2Pyap2 detects and parses postal addresses from…
permissive · top 15,000 on PyPI
courts-dbProvides a searchable database of current and…
permissive · top 15,000 on PyPI
date-spacyAdds a spaCy pipeline component that identifies…
permissive · top 15,000 on PyPI
ctparseParses natural language time expressions (like…
permissive · top 15,000 on PyPI
pygrokParses strings and extracts structured data…
permissive · top 15,000 on PyPI
recognizers-text-date-timeRecognizes and resolves date and time entities…
permissive · top 15,000 on PyPI
pythonvCard4Parse and generate RFC 6350-compliant vCard 4.0…
permissive · top 15,000 on PyPI