Addison Wesley : Text Processing in Python

Addison Wesley : Text Processing in Python

Author:By David Mertz
Format: mobi
ISBN: 0321112547
Publisher: Addison Wesley
Published: 2014-02-07T09:49:20.939375+00:00


METHODS AND ATTRIBUTES

re.compile.findall(s)

Return a list of nonoverlapping occurrences of the PatternObject in s. Same as re.findall() called with the PatternObject.

SEE ALSO re.findall()

re.compile.flags

The numeric sum of the flags passed to re.compile() in creating the PatternObject. No formal guarantee is given by Python as to the values assigned to modifier flags, however. For example:

>>> import re

>>> re.I,re.L,re.M,re.S,re.X

(2, 4, 8, 16, 64)

>>> c = re.compile('a', re.I | re.M)

>>> c.flags

10



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.