I have big text file and I have to find all words starts with '$' and ends with ';' like $word;
.
import re
text = "$h;BREWERY$h_end;You've built yourself a brewery."
x = re.findall("$..;", text)
print(x)
I want my output like ['$h;', '$h_end;']
How can I do that?