in reply to skip over an escaped single quote
s/(?|(')[^'\\]*(?:\\.[^'\\]*)*'| (")[^"\\]*(?:\\.[^"\\]*)*")/${1}SSS$1/gxs; [download]
I just learned the (?|pattern) "branch reset" pattern from this post. It'll come in very handy—save me shenanigans—I'm sure. Thanks, ++JavaFan!