Searched refs:_regexp_compile_cache (Results 1 – 2 of 2) sorted by relevance
35 _regexp_compile_cache = {} variable40 if not pattern in _regexp_compile_cache:41 _regexp_compile_cache[pattern] = re.compile(pattern)42 return _regexp_compile_cache[pattern].match(string)
243 _regexp_compile_cache = {} variable251 if not pattern in _regexp_compile_cache:252 _regexp_compile_cache[pattern] = sre_compile.compile(pattern)253 return _regexp_compile_cache[pattern].match(s)258 if not pattern in _regexp_compile_cache:259 _regexp_compile_cache[pattern] = sre_compile.compile(pattern)260 return _regexp_compile_cache[pattern].search(s)