I would like to find an occurrence of a word in Python and print the word after this word. The words are space separated.
example :
if there is an occurrence of the word "sample" "thisword" in a file . I want to get thisword. I want a regex as the thisword keeps on changing .