Searches the string for the pattern, caching the compiled regexp.
(pattern, s)
| 672 | |
| 673 | |
| 674 | def Search(pattern, s): |
| 675 | """Searches the string for the pattern, caching the compiled regexp.""" |
| 676 | if pattern not in _regexp_compile_cache: |
| 677 | _regexp_compile_cache[pattern] = sre_compile.compile(pattern) |
| 678 | return _regexp_compile_cache[pattern].search(s) |
| 679 | |
| 680 | |
| 681 | def _IsSourceExtension(s): |
no outgoing calls
no test coverage detected