I never found a solution to the original problem, so I’m reframing it:
Is it possible to write a RegExp to match if a segment has one spesific character once and just once.
(In practice, I want to spot a lone " in a segment)
Quotation marks to be used in target - ALT+0148: ”xxx”:
Source: leave blank
Target: “|„|«|»|"|‘|’
(RegEx)
I am not 100% sure what you mean by “just once”, but the above will check that your target does not contain any of the mentioned in the RegEx, which are the most common - in other words only “alt+0148”
I hope it helps
However, I think I did not explain well enough. I want to spot unpaired quotes, like this:
THIS IS OK, should not match: correct ”xxx” quotes
THIS IS WRONG, should match: incorrect ”xxx quotes, closing is missing
So, why I don’t just use the built-in quote check? Because XBench does not understand that 1) is correct, but reports all such segments (because it thinks that it should be “xxx”, like in English.