I'm trying to have a regex describe a single-quote-delimited string. Inside the string, I can have either any printable (or whitespace) character (which is NOT a single quote), OR a series of TWO single quotes, which would be an "escaped" single quote.
The [[:print:]] character class (also written as \p{XPosixPrint}) fits the bill for the characters I want to allow... except that it would ALSO allow a single "single quote" ('). Which I don't want to happen.
So, is there a simple way to do that, like, describing a character to match two expressions at the same time (like [[:print:]] and [^'] ), or do I have to create a custom character class enumerating everything I'm allowing (or forbidding) ?