Are you sure that you don't need to treat the backslash like your other characters?
Your current incarnation will leave foo\bar as-is and convert foo\[ to foo\\[. I'm not certain that that is what you want.
In reply to Re: Faster way to regex this
by Corion
in thread Faster way to regex this
by jar00n
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |