I'm looking for a regular expression which matches the ä char but only when it isn't inside a double quote.
I was trying to solve this problem with a negative look behind that shouldn't have a double quote followed by any char which isn't a double quote, but actually only for even times, which means 1, 3, 5, etc
The attempt was something like this one: (?<!("[^"]*(?:(?:"[^"]*){2})*?)?)ä
But it doesn't work.
Or for a positive look behind for a double quote followed by any char which isn't a double quote but only for odd times, which means 0, 2, 4, etc
The attempt was something like this one: (?<=(?:(?:"[^"]*){2})*)ä
But it doesn't working either.
So all my attempts have failed! This is my test string:
This ä is to replace
"This ä is not to replace"
"This ä is not to replace" but this ä is to replace
This ä is to replace but "this ä is not to replace"
This ä is to replace, "this ä is not to replace", this ä is again to replace
"This ä is not to replace", "this ä neither", but this ä is to replace
"This ä and this ä aren't to replace", but this ä and this ä are to replace
This is the ultimate mix: ä ä "ä ä ä" ä ä ä "ä ä" "ä" "ä ä" ä ä ä