MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / match_regex

Function match_regex

subprojects/llama.cpp/tools/server/tests/utils.py:614–620  ·  view source on GitHub ↗
(regex: str, text: str)

Source from the content-addressed store, hash-verified

612
613
614def match_regex(regex: str, text: str) -> bool:
615 return (
616 re.compile(
617 regex, flags=RegexFlag.IGNORECASE | RegexFlag.MULTILINE | RegexFlag.DOTALL
618 ).search(text)
619 is not None
620 )
621
622
623def download_file(url: str, output_file_path: str | None = None) -> str:

Calls 2

compileMethod · 0.65
searchMethod · 0.45