mailgun / flanker

Python email address and Mime parsing library
http://www.mailgun.com
Apache License 2.0
1.63k stars 204 forks source link

[Question] Is there a reason why regex is used instead of re? #228

Open carsonip opened 5 years ago

carsonip commented 5 years ago

Is there a reason why regex is used instead of Python standard library re? I am thinking about moving to PyPy and re is faster than regex in PyPy. As a side note, some versions of regex package has some issues.

carsonip commented 5 years ago

From docs/Benchmarks.md I see that it is about performance. With re the tests are still passing. Can I safely assume that regex can be replaced by re?