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

Function search

pattern/text/search.py:892–895  ·  view source on GitHub ↗

Returns a list of all matches found in the given sentence.

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

Source from the content-addressed store, hash-verified

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.
894 """
895 return compile(pattern, *args, **kwargs).search(sentence)
896
897def escape(string):
898 """ Returns the string with control characters for Pattern syntax escaped.

Callers 10

05-multiple.pyFile · 0.90
02-constraint.pyFile · 0.90
04-taxonomy.pyFile · 0.90
03-lemmata.pyFile · 0.90
06-optional.pyFile · 0.90
01-search.pyFile · 0.90
04-KNN.pyFile · 0.90
searchMethod · 0.85
get_pagesMethod · 0.85
get_outlinesMethod · 0.85

Calls 2

compileFunction · 0.85
searchMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…