Searches the string for the pattern, caching the compiled regexp.
(pattern, s)
| 541 | |
| 542 | |
| 543 | def Search(pattern, s): |
| 544 | """Searches the string for the pattern, caching the compiled regexp.""" |
| 545 | if pattern not in _regexp_compile_cache: |
| 546 | _regexp_compile_cache[pattern] = sre_compile.compile(pattern) |
| 547 | return _regexp_compile_cache[pattern].search(s) |
| 548 | |
| 549 | |
| 550 | class _IncludeState(dict): |
no outgoing calls
no test coverage detected