Try to apply the pattern to all of the string, returning a Match object, or None if no match was found.
(pattern, string, flags=0)
| 167 | return _compile(pattern, flags).match(string) |
| 168 | |
| 169 | def fullmatch(pattern, string, flags=0): |
| 170 | """Try to apply the pattern to all of the string, returning |
| 171 | a Match object, or None if no match was found.""" |
| 172 | return _compile(pattern, flags).fullmatch(string) |
| 173 | |
| 174 | def search(pattern, string, flags=0): |
| 175 | """Scan through string looking for a match to the pattern, returning |