0%
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
import re a,b = input(),input() a = a.lower() b = b.lower()
a = a.replace( '.','\.').replace('?','[A-Za-z0-9]{1}').replace('*','[A-Za-z0-9]*') result = re.findall(a,b)
if b in result: print('true') else: print('false')
|