A major restriction of look-behind assertions is that the pattern looked for must be of a constant width. I'm not sure how you'd work that into a substitution regex. The solution you have here seems simple and ought to do what you need; is there a reason you need to reduce this to one regex?
If you haven't seen it already, take a look at japhy's regexp book.
In reply to Re: look-behind regex
by DamnDirtyApe
in thread look-behind regex
by zejames
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |