import re
str ="My Name is Aniruddha"
#This method returns a list containing a list of all matches of a pattern within the string.
 # It returns the patterns in the order they are found.If there are no matches, then an empty list is returned.
m=re.findall("Name",str)
print(m)
#The match object contains the information about the search and the output. If there is no match found, the None object is returned.
n=re.search("My",str)
print(n)
print(n.span())
print(n.group())



67d26d11d383ef0a09fe5e46f66319ea02684edd
<mask token>

<mask token>
print(m)
<mask token>
print(n)
print(n.span())
print(n.group())

<mask token>
str = 'My Name is Aniruddha'
m = re.findall('Name', str)
print(m)
n = re.search('My', str)
print(n)
print(n.span())
print(n.group())

import re
str = 'My Name is Aniruddha'
m = re.findall('Name', str)
print(m)
n = re.search('My', str)
print(n)
print(n.span())
print(n.group())

import re
str ="My Name is Aniruddha"
#This method returns a list containing a list of all matches of a pattern within the string.
 # It returns the patterns in the order they are found.If there are no matches, then an empty list is returned.
m=re.findall("Name",str)
print(m)
#The match object contains the information about the search and the output. If there is no match found, the None object is returned.
n=re.search("My",str)
print(n)
print(n.span())
print(n.group())


