s/(?|(')[^'\\]*(?:\\.[^'\\]*)*'| (")[^"\\]*(?:\\.[^"\\]*)*")/${1}SSS$1/gxs; [download]
In reply to Re: skip over an escaped single quote by JavaFan in thread skip over an escaped single quote by bplegend