Two notes.
One, Python's re engine is not nearly as capable as Perl's. I've only written a tiny amount of Python, but I've already hit its limitations repeatedly. Enough so that I now go straight to Python's regex engine. This one is much closer to Perl's.
Two, Perl's regex engine is famously good at failing fast (i.e. detecting that a pattern can't match). I've always heard of it coming out slower in comparisons otherwise.
In reply to Re: Python regex faster than Perl?
by ikegami
in thread Python regex faster than Perl?
by dave93
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |