while True:
    x = input('What entry do you want ? : ')
found = re.findall(patbase % x, ss, re.DOTALL)
if found:
    print('found ==', found)
for each_entry in found:
    print('\n%s\n' % each_entry)
else:
    print('\n ** There is no such an entry **\n')
Извлечение нескольких строк данных между двумя символами — Regex и Python3