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)
| 171 | return _compile(pattern, flags).fullmatch(string) |
| 172 | |
| 173 | def search(pattern, string, flags=0): |
| 174 | """Scan through string looking for a match to the pattern, returning |
| 175 | a Match object, or None if no match was found.""" |
| 176 | return _compile(pattern, flags).search(string) |
| 177 | |
| 178 | def sub(pattern, repl, string, count=0, flags=0): |
| 179 | """Return the string obtained by replacing the leftmost |