# A match Object is an object containing information about the search and the result
# if there is no match,the value None will be returned,instead of the match Object
# the match object has properties and methods used to retrieve information about the search,and the result

import re
str = 'The rain in Spain'
#x = re.search('ai',str)
#x = re.finditer('ai',str)
#the span() method of the match Object returns a tuple containing the start and end positions of the match in string
#for each in x:
#    print(each.span(),end='')

