import re
def mtch():
try:
st, reg = input().split()
reg = reg.replace("*", ".*")
ans = re.search(reg, st)
if (ans):
print(True)
else:
print(False)
except:
print(False)
n=int(input())
for i in range(n):
mtch()
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments