kichik / email-scraper

Simple Python library to scrape email addresses from HTML
MIT License
21 stars 10 forks source link

Optimized regex to find '@' first. #7

Closed DuneBoy closed 3 years ago

DuneBoy commented 3 years ago

The previous regex scaled very poorly with larger texts. Searching for the '@' symbol first greatly optimized the search.