import re;
txt = 'I love to teach python and javaScript'
# It returns an object with span, and match
match = re.match('I', txt, re.I)
print(match)
span = match.span()
print(span)
txt = '''Python is the most beautiful language that a human being has ever created.
I recommend python for a first programming language'''

# It return a list
matches = re.findall('language', txt, re.I)
print(matches)  # ['language', 'language']

a0c465a8e7054fe4d1d177db5cac2eae7b3a1cab
<mask token>

<mask token>
print(match)
<mask token>
print(span)
<mask token>
print(matches)

<mask token>
txt = 'I love to teach python and javaScript'
match = re.match('I', txt, re.I)
print(match)
span = match.span()
print(span)
txt = """Python is the most beautiful language that a human being has ever created.
I recommend python for a first programming language"""
matches = re.findall('language', txt, re.I)
print(matches)

import re
txt = 'I love to teach python and javaScript'
match = re.match('I', txt, re.I)
print(match)
span = match.span()
print(span)
txt = """Python is the most beautiful language that a human being has ever created.
I recommend python for a first programming language"""
matches = re.findall('language', txt, re.I)
print(matches)

import re;
txt = 'I love to teach python and javaScript'
# It returns an object with span, and match
match = re.match('I', txt, re.I)
print(match)
span = match.span()
print(span)
txt = '''Python is the most beautiful language that a human being has ever created.
I recommend python for a first programming language'''

# It return a list
matches = re.findall('language', txt, re.I)
print(matches)  # ['language', 'language']
