Lines Matching refs:match
145 match = self.interesting.search(rawdata, i) # < or &
146 if match:
147 j = match.start()
157 if starttagopen.match(rawdata, i): # < + letter
185 match = charref.match(rawdata, i)
186 if match:
187 name = match.group()[2:-1]
189 k = match.end()
200 match = entityref.match(rawdata, i)
201 if match:
202 name = match.group(1)
204 k = match.end()
209 match = incomplete.match(rawdata, i)
210 if match:
211 # match.group() will contain at least 2 chars
212 if end and match.group() == rawdata[i:]:
270 match = piclose.search(rawdata, i+2) # >
271 if not match:
273 j = match.start()
275 j = match.end()
289 match = tagfind.match(rawdata, i+1)
290 assert match, 'unexpected call to parse_starttag()'
291 k = match.end()
292 self.lasttag = tag = match.group(1).lower()
295 m = attrfind.match(rawdata, k)
333 m = locatestarttagend.match(rawdata, i)
366 match = endendtag.search(rawdata, i+1) # >
367 if not match:
369 gtpos = match.end()
370 match = endtagfind.match(rawdata, i) # </ + tag + >
371 if not match:
376 namematch = tagfind_tolerant.match(rawdata, i+2)
392 elem = match.group(1).lower() # script or style