Lines Matching refs:match
26 regular expressions; they simply match themselves. You can
35 Greedy means that it will match as many repetitions as possible.
44 "|" A|B, creates an RE that will match either A or B.
53 (?!...) Matches if ... doesn't match next.
61 resulting RE will match the second character.
72 With LOCALE, it will match the set [0-9_] plus characters defined
78 match Match a regular expression pattern to the beginning of a string.
84 finditer Return an iterator yielding a match object for each match.
109 __all__ = [ "match", "search", "sub", "subn", "split", "findall",
121 S = DOTALL = sre_compile.SRE_FLAG_DOTALL # make dot match newline
134 def match(pattern, string, flags=0):
136 a match object, or None if no match was found."""
137 return _compile(pattern, flags).match(string)
140 """Scan through string looking for a match to the pattern, returning
141 a match object, or None if no match was found."""
149 a callable, it's passed the match object and must return
160 If it is a callable, it's passed the match object and must
183 string. For each match, the iterator returns a match object.
263 def _expand(pattern, match, template):
264 # internal: match.expand implementation hook
266 return sre_parse.expand_template(template, match)
274 def filter(match, template=template):
275 return sre_parse.expand_template(template, match)
308 match = self.scanner.scanner(string).match
311 m = match()
319 self.match = m