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)
| 162 | # public interface |
| 163 | |
| 164 | def match(pattern, string, flags=0): |
| 165 | """Try to apply the pattern at the start of the string, returning |
| 166 | a Match object, or None if no match was found.""" |
| 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 |