def MakeTokenRegex(meta_left, meta_right):
 key = (meta_left, meta_right)
 if (key not in _token_re_cache):
  _token_re_cache[key] = re.compile((((('(' + re.escape(meta_left)) + '.+?') + re.escape(meta_right)) + ')'))
 return _token_re_cache[key]

def MakeTokenRegex ( meta_left , meta_right ) : key = ( meta_left , meta_right ) if ( key not in _token_re_cache ) : _token_re_cache [ key ] = re . compile ( ( ( ( ( '(' + re . escape ( meta_left ) ) + '.+?' ) + re . escape ( meta_right ) ) + ')' ) ) return _token_re_cache [ key ]
return a regular expression for tokenization .