import re

with open("names.txt", encoding="utf-8") as names_file:
	data = names_file.read()

# Match encuentra solo al inicio del string
# Hacemos match contra el nombre de Kenneth Love
print(data)
print(re.match(r'Love', data)) # returns match object
print(re.match(r'Kenneth', data)) # returns None

# Search busca en todas partes la primera ocurrencia
print(re.search(r'Kenneth', data)) # returns Match object
274b284cda18dc75e2c8fa4d932dc817b8315a2d
<mask token>

<mask token>
with open('names.txt', encoding='utf-8') as names_file:
    data = names_file.read()
print(data)
print(re.match('Love', data))
print(re.match('Kenneth', data))
print(re.search('Kenneth', data))

import re
with open('names.txt', encoding='utf-8') as names_file:
    data = names_file.read()
print(data)
print(re.match('Love', data))
print(re.match('Kenneth', data))
print(re.search('Kenneth', data))

import re

with open("names.txt", encoding="utf-8") as names_file:
	data = names_file.read()

# Match encuentra solo al inicio del string
# Hacemos match contra el nombre de Kenneth Love
print(data)
print(re.match(r'Love', data)) # returns match object
print(re.match(r'Kenneth', data)) # returns None

# Search busca en todas partes la primera ocurrencia
print(re.search(r'Kenneth', data)) # returns Match object