I'm struggling with a simple regex question. I want to extract text between two specific characters: -
and ~
Here's my string:
Champions tour - To Win1 - To Win2 ~JIM FURYK
Currently, when I use this regex pattern: \-([^)]+\~)
, it matches the following:
To Win1 - To Win2 ~
However, I actually need this result:
To Win2 ~JIM FURYK
Is there a way to achieve this using regex?
You can find my regex pattern here: https://regex101.com/r/fJBLXb/1/