H A D | kdoc_re.py | 28 def _add_regex(self, string, flags): argument 32 self.regex = re_cache.get(string, None) 34 self.regex = re.compile(string, flags=flags) 36 re_cache[string] = self.regex 38 def __init__(self, string, cache=True, flags=0): 46 self._add_regex(string, flags) 62 def match(self, string): 67 self.last_match = self.regex.match(string) 70 def search(self, string): 75 self.last_match = self.regex.search(string) 41 __init__(self, string, cache=True, flags=0) global() argument 65 match(self, string) global() argument 73 search(self, string) global() argument 81 findall(self, string) global() argument 88 split(self, string) global() argument 95 sub(self, sub, string, count=0) global() argument [all...] |