Lines Matching refs:match
425 # Now see if there are any backreferences to match groups
432 match.groups()
433 for match in matches
434 if match.groups()
441 raise RuntimeError(_("no match group {group:d} "
480 # skip if types are specified and none match
487 # Check to make sure all matching attrs actually match. The
490 attrdict[key].match(attrval)
499 # Map each pattern to its position in the original match string.
501 for attr, match in six.iteritems(attrdict):
503 # and lead to a mis-match. These three patterns are all
504 # safe to try. If we fail to find the match expression,
510 matchorder[match.pattern] = -1
512 pos = s.find(qs.format(attr, match.pattern))
514 matchorder[match.pattern] = pos