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