I ma trying to lear Regex but when I ma following a tutorial the regex I wrote return None.
import re
pattern = 'lion'
string = 'Le lion est l\'animal national de l\'Inde'
mo = re.match(pattern, string)
print(mo)
#Print None
Why ? lion is present in my string
re.matchrequires that matches start at the beginning of the string. Usere.searchinstead.\before the secondd