Lines Matching refs:match
148 match = self.interesting.search(rawdata, i) # < or &
149 if match:
150 j = match.start()
160 if starttagopen.match(rawdata, i): # < + letter
188 match = charref.match(rawdata, i)
189 if match:
190 name = match.group()[2:-1]
192 k = match.end()
203 match = entityref.match(rawdata, i)
204 if match:
205 name = match.group(1)
207 k = match.end()
212 match = incomplete.match(rawdata, i)
213 if match:
215 if end and match.group() == rawdata[i:]:
273 match = piclose.search(rawdata, i+2) # >
274 if not match:
276 j = match.start()
278 j = match.end()
292 match = tagfind.match(rawdata, i+1)
293 assert match, 'unexpected call to parse_starttag()'
294 k = match.end()
295 self.lasttag = tag = match.group(1).lower()
298 m = attrfind.match(rawdata, k)
336 m = locatestarttagend.match(rawdata, i)
369 match = endendtag.search(rawdata, i+1) # >
370 if not match:
372 gtpos = match.end()
373 match = endtagfind.match(rawdata, i) # </ + tag + >
374 if not match:
379 namematch = tagfind.match(rawdata, i+2)
395 elem = match.group(1).lower() # script or style