2 ms·
both Perl and Python use PCRE No, Perl doesn't. PCRE was written because a lot of people liked some of the ideas that were first introduced in Perl's regular
by btilly 14y ago
both Perl and Python use PCRE
No, Perl doesn't.
PCRE was written because a lot of people liked some of the ideas that were first introduced in Perl's regular expression engine. But PCRE was a reimplementation, and never was all that compatible with what Perl was doing.
- LeonidasXIV 14y agoThe funny thing is, that Python doesn't use PCRE either and never had.
- muyuu 14y agoTrue enough. It's not the first time I hear about PCRE and Python, so maybe it's a common misconception. Other than "re", there's "re2" and "regex". None are PCRE but "regex" is close enough most of the time.