Compared To Using Python's "re" Module |
A lot of what can be with this new pattern matching library can also be done with Python's "re" library module, which is a port of Perl's pattern matching language. But there are things it does that the "re" module can't.
Most importantly, you can embed any Perl code within a Perl pattern – you can't embed Python code within a Python "re" pattern.