I am struggling with a regex in python. I've spent several hours trying to figure out what is wrong. Here is my content:
Some Title - Description (Gold Edition)
Some Title - Description
I need to match Some Title and optional Gold word in brackets.
I've tried the following regex https://regex101.com/r/9MNYZl/1 :
(.*)\-.*(?:\((.*)[Ee]dition\))*?
But it doesn't capture the word before Edition.
One interesting thing that I tried this for PHP and it worked fine.
I have no ideas what is wrong, please help to solve the issue.
Many thanks.