Searches the string for the pattern, caching the compiled regexp.
(pattern, s)
| 683 | |
| 684 | |
| 685 | def Search(pattern, s): |
| 686 | """Searches the string for the pattern, caching the compiled regexp.""" |
| 687 | if pattern not in _regexp_compile_cache: |
| 688 | _regexp_compile_cache[pattern] = sre_compile.compile(pattern) |
| 689 | return _regexp_compile_cache[pattern].search(s) |
| 690 | |
| 691 | |
| 692 | def _IsSourceExtension(s): |
no test coverage detected
searching dependent graphs…