def Match(pattern, s):
 if (pattern not in _regexp_compile_cache):
  _regexp_compile_cache[pattern] = sre_compile.compile(pattern)
 return _regexp_compile_cache[pattern].match(s)

def Match ( pattern , s ) : if ( pattern not in _regexp_compile_cache ) : _regexp_compile_cache [ pattern ] = sre_compile . compile ( pattern ) return _regexp_compile_cache [ pattern ] . match ( s )
matches the string with the pattern .