Let's say I have the following two strings:
...some content above
Destination: Fox - Man (200.170.217.200)
...some content below
And
...some content above
Destination: Some content goes here and ends
...some content below
The regex should grab:
Fox - Man and Some content goes here and ends.
I would like to grab everything in the description except a trailing parenthetical. Basically, it is combining these two regexes:
Destination:\s*(.+\S) # everything until the end of the line
Destination:\s*([^(]+\S) # everything until the first open parenthetical
How would I combine these so that the exit at ( takes precedence? Sample here: https://regex101.com/r/5qUwRW/1