Not to be a smartass, but is there a reason you're not using something like Template Toolkit? All this nastiness is dealt with, many excellent possibilities are opened up, and you can do more interesting things with your coding life :-)
Chris
M-x auto-bs-mode
In reply to Re: Do regex using hash keys to wrapped template tokens
by lachoy
in thread Do regex using hash keys to wrapped template tokens
by S_Shrum
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |