I'm working on python script that will extract some words. These words are from a larger text and must be after a given strings and some lines.
Like this: Country --> This is the word I know Judecatoria X/Tribunalul X/Judecatoria Sectorului X --> One of these words are present in the text, however I do not know which of them and I want regex to matched it.
import re
text:"""Country
Judecatoria Sectorului X"""
#pattern = this is what I am looking for
expected result:['Judecatoria Sectorului X']
Thank you very much!