3 # All rights reserved. This program and the accompanying materials
4 # are made available under the terms of the Apache License, Version 2.0
5 # which accompanies this distribution, and is available at
6 # http://www.apache.org/licenses/LICENSE-2.0
11 class RegexMatch(str):
12 def __eq__(self, other):
13 match = re.search(self, other)
19 class SubstrMatch(str):
20 def __eq__(self, other):