MCPcopy Create free account
hub / github.com/tortoise/tortoise-orm / regexp

Function regexp

tortoise/contrib/sqlite/regex.py:33–36  ·  view source on GitHub ↗
(expr, item)

Source from the content-addressed store, hash-verified

31
32async def install_regexp_functions(connection: aiosqlite.Connection):
33 def regexp(expr, item):
34 if not expr or not item:
35 return False
36 return re.search(expr, item) is not None
37
38 def iregexp(expr, item):
39 return re.search(expr, item, re.IGNORECASE) is not None

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…