import re
s = "Hello, my name is John. Nice to meet you, John."
print('----------贪婪模式---------')
pattern = "my.*John"
result = re.search(pattern,s)
print(result)
print('----------非贪婪模式---------')
pattern = "my.*?John"
result = re.search(pattern,s)
print(result)
