search = ".jpg"
f = "electronics395.txt"

file = open(f, 'r')
for line in file:
    if re.search(search, line):
        print(line)
aaa30fe7c475894ae55ff0042bee3415121d5e9e
<mask token>

<mask token>
for line in file:
    if re.search(search, line):
        print(line)

search = '.jpg'
f = 'electronics395.txt'
file = open(f, 'r')
for line in file:
    if re.search(search, line):
        print(line)

search = ".jpg"
f = "electronics395.txt"

file = open(f, 'r')
for line in file:
    if re.search(search, line):
        print(line)