Scan through string looking for a match to the pattern, returning a Match object, or None if no match was found.
(pattern, string, flags=0)
| 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 |
| 176 | a Match object, or None if no match was found.""" |
| 177 | return _compile(pattern, flags).search(string) |
| 178 | |
| 179 | class _ZeroSentinel(int): |
| 180 | pass |