Don't know if it's relevant to the problem but both your and ikegami's solutions fail when contractions enter into the "word" list.
In reply to Re^2: How to Modify Only Non-Quoted Words?
by Your Mother
in thread How to Modify Only Non-Quoted Words?
by ventolin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |