Name
compile
Synopsis
compile(pattern
,flags
=0)
Creates and returns a regular expression object, parsing string
pattern
as per the syntax covered in Section 9.7.1, and using
integer flags
as in the section Section 9.7.6, both earlier in this
chapter.
Get Python in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.