The regular expression module ‘
re
’
The table below describes selected functions that are in the re module and bound methods
of the re.RegexpObject class, which we represent here as reObj. Note in many cases the
RegexpObject methods accept optional start and end points to specify which region of the
text string to search within. Also, all of the re methods below that accept a pattern can
include optional flags to specify special behaviour: e.g. re.compile(patt, flags=re.I) is used
for case-insensitive searching. These are listed at
http://www.python.org
.
Do'stlaringiz bilan baham: |