MCPcopy Index your code
hub / github.com/clips/pattern / match

Function match

pattern/text/search.py:887–890  ·  view source on GitHub ↗

Returns the first match found in the given sentence, or None.

(pattern, sentence, *args, **kwargs)

Source from the content-addressed store, hash-verified

885 raise TypeError, "can't compile '%s' object" % pattern.__class__.__name__
886
887def 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
892def search(pattern, sentence, *args, **kwargs):
893 """ Returns a list of all matches found in the given sentence.

Callers 7

imperativeFunction · 0.90
03-lemmata.pyFile · 0.90
09-groups.pyFile · 0.90
canvas.jsFile · 0.85
cooccurrenceFunction · 0.85
findFunction · 0.85
indexofMethod · 0.85

Calls 2

compileFunction · 0.85
matchMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…