Try to apply the pattern at the start of the string, returning a Match object, or None if no match was found.
(pattern, string, flags=0)
| 161 | # public interface |
| 162 | |
| 163 | def match(pattern, string, flags=0): |
| 164 | """Try to apply the pattern at the start of the string, returning |
| 165 | a Match object, or None if no match was found.""" |
| 166 | return _compile(pattern, flags).match(string) |
| 167 | |
| 168 | def fullmatch(pattern, string, flags=0): |
| 169 | """Try to apply the pattern to all of the string, returning |
no test coverage detected