Lines Matching refs:re
7 import re
71 match = re.search(LINESEARCH, orig)
82 args = re.split("\s+", match[3])
83 bodymatch = re.search(BODYSEARCH, body_orig)
91 bodymatch = re.search(BODYSEARCH, body_orig)
97 match = re.search(LINESEARCH, orig)
103 patterns = re.split("\s+", patterns_string.strip())
105 wildcard_match = re.search("^(.*)\*$", pattern)
106 lowest_version_match = re.search("^(.*)\+$", pattern)
109 if re.search("^" + re.escape(wildcard_match[1]), self.kind):
144 matchbad = re.search("^[/\\\]%(\S*)", self.line)
149 if re.search("^%", self.line) and not re.search("^%{", self.line):
151 if re.search("^%%", self.line):
155 match = re.search("^(%\S*)", self.line);
161 match = re.search("^%insert(?:-indented\s+(\S+))?\s+(\S+)\s*$", self.line)
167 assert re.match("^\d+$", count), "Bad count \"" + count + "\" on " + self.context()
179 match = re.search("^%section\s+(\S+)\s*$", self.line)
195 if re.search("^%/section\s*$", self.line):
204 match = re.search("^%kind\s+((\S+)(\s+\S+)*)\s*$", self.line)
217 if re.search("^%else\s*$", self.line):
245 if re.search("^%/kind\s*$", self.line):
254 match = re.search("^%define-kinds\s+(\S.*?)\s*$", self.line)
258 kinds = re.split("\s+", match[1])
265 match = re.search("^%define\s+(\S+)(.*)$", self.line)
272 match = re.search("\s(.*)$", tail)
305 if re.search("^%", self.line):
307 if re.search("^%%", self.line):
311 match = re.search("^%insert(?:-indented\s+(\S+))?\s+(\S+)\s*$", self.line)
315 assert re.match("^\d+$", count), "Bad count \"" + count + "\" on " + self.context()
319 if re.search("TODO", line, re.IGNORECASE):
325 match = re.search("^(%\S*)", self.line)
329 if re.search("TODO", self.line, re.IGNORECASE):