I am currently using a regex to match a certain line such as:
(.0025 = 625 dollars per contract)
I have a regex which I used for a similar expression, that gets the job done. But, I wanted to know if there was a better implementation for it:
new_string = re.search(r'.*?\([^$]*?([\$|\d][^)]* per contract)\)', cell)
I know I can change point where it looks for a dollar sign, but any other things?
If you could also explain your regex, it would be helpful.