Searches the string for the pattern, caching the compiled regexp.
(pattern, s)
| 688 | |
| 689 | |
| 690 | def Search(pattern, s): |
| 691 | """Searches the string for the pattern, caching the compiled regexp.""" |
| 692 | if pattern not in _regexp_compile_cache: |
| 693 | _regexp_compile_cache[pattern] = sre_compile.compile(pattern) |
| 694 | return _regexp_compile_cache[pattern].search(s) |
| 695 | |
| 696 | |
| 697 | def _IsSourceExtension(s): |
no outgoing calls
no test coverage detected