Regular expressions are a large part of the Perl language and they are used just about everywhere. In addition to the =~ and !~ operators, regular expressions are also supported by split(), grep(), and other functions, and they become a standard part of just about every text processing script you write. The regular expression system in Perl is one of the contributing factors to why Perl is so popular when it comes to processing information.

Python's regular expression system is not so much of an integral part of the language. There is no built-in regular expression parser, instead we have to use an external module to provide the facilities. Although we have access to the same basic methods of matching and replacing regular ...

Get Perl To Python Migration now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.