If you want to escape quotes oustide of quoted strings, change
( # $2 [^\s"']+ # Something to prefix. )
to
( # $2 (?:[^\s"'\\]|\\.)+ # Something to prefix. )
In reply to Re^3: How to Modify Only Non-Quoted Words?
by ikegami
in thread How to Modify Only Non-Quoted Words?
by ventolin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |