Searched refs:_regexp_compile_cache (Results 1 – 5 of 5) sorted by relevance
39 _regexp_compile_cache = {} variable45 if not pattern in _regexp_compile_cache:46 _regexp_compile_cache[pattern] = re.compile(pattern)47 return _regexp_compile_cache[pattern].match(string)
124 _regexp_compile_cache = {} variable129 if not pattern in _regexp_compile_cache:130 _regexp_compile_cache[pattern] = sre_compile.compile(pattern)131 return _regexp_compile_cache[pattern].match(s)136 if not pattern in _regexp_compile_cache:137 _regexp_compile_cache[pattern] = sre_compile.compile(pattern)138 return _regexp_compile_cache[pattern].search(s)143 if not pattern in _regexp_compile_cache:144 _regexp_compile_cache[pattern] = sre_compile.compile(pattern)145 return _regexp_compile_cache[pattern].sub(replacement, s)[all …]
434 _regexp_compile_cache = {} variable509 if pattern not in _regexp_compile_cache:510 _regexp_compile_cache[pattern] = sre_compile.compile(pattern)511 return _regexp_compile_cache[pattern].match(s)527 if pattern not in _regexp_compile_cache:528 _regexp_compile_cache[pattern] = sre_compile.compile(pattern)529 return _regexp_compile_cache[pattern].sub(rep, s)534 if pattern not in _regexp_compile_cache:535 _regexp_compile_cache[pattern] = sre_compile.compile(pattern)536 return _regexp_compile_cache[pattern].search(s)
347 _regexp_compile_cache = {} variable414 if not pattern in _regexp_compile_cache:415 _regexp_compile_cache[pattern] = sre_compile.compile(pattern)416 return _regexp_compile_cache[pattern].match(s)421 if not pattern in _regexp_compile_cache:422 _regexp_compile_cache[pattern] = sre_compile.compile(pattern)423 return _regexp_compile_cache[pattern].search(s)