Need help with a regular expression, or rather with the preparation of the template, to search for a full match with the string.
Example:
import re word = input() with open('first.txt', 'r') as file1: line = file1.read() if re.search(word, line): #т.к.ищется первое вхождение, то нужно как - то настроить шаблон, и я не понимаю как это сделать print('слово найдено')