It doesn't work because there's no end token before the two single quotes.
I'm not sure there's a way to do this within a single, maintainable regular expression. I'd rather inch through the file, keeping a flag to signify whether or not I'm in an embedded code sequence, replacing all single quotes while I'm not.
In reply to Re: silly regex question
by chromatic
in thread silly regex question
by batkins
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |