Returns the first match found in the given sentence, or None.
(pattern, sentence, *args, **kwargs)
| 885 | raise TypeError, "can't compile '%s' object" % pattern.__class__.__name__ |
| 886 | |
| 887 | def match(pattern, sentence, *args, **kwargs): |
| 888 | """ Returns the first match found in the given sentence, or None. |
| 889 | """ |
| 890 | return compile(pattern, *args, **kwargs).match(sentence) |
| 891 | |
| 892 | def search(pattern, sentence, *args, **kwargs): |
| 893 | """ Returns a list of all matches found in the given sentence. |
no test coverage detected
searching dependent graphs…