<gh_stars>0
import re
patterns = 'xy+?'
if re.search(patterns,  "xz"):
    print('Starts with x and has one y')
else:
    print('No matching')

#No matching
import re
patterns = 'xy+?'
if re.search(patterns,  "xz"):
    print('Starts with x and has one y')
else:
    print('No matching')

#No matching
#No matching