def METHOD_NAME(rx, s1, s2, line_warns):
	"""checks if regular expresion match from s1 is equal to match from s2"""
	rx1 = rx.search(s1)
	if rx1:
		rx2 = rx.search(s2)
		if not rx2:
			line_warns.append('re1(%s)' % rx.pattern)
			return 1
		if rx1.group(1) != rx2.group(1):
			line_warns.append('re2(%s)' % rx.pattern)
			return 1
	return 0