I have this regex ((\.)|(\),)) (([^\.:]+)): to get values between a . and :
The problems is that I don't want to consider the dots inside a parenthesis. My idea was to add a negative lookahead with something like (?!.*\(,) but no success so far.
Here is an example of text:
Simple text (Example with . inside), The key: Value. Another key: sfdfd.
The text i want to extract is The key and Another key
How could i solve this?
If you don't have guaranties on parentheses parity - it would be impossible to solve:
However if you have such guaranty, e.g.
single level only + parity, then you can solve it in two stepsStdout: