REGULAR EXPRESSIONS
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access