in reply to look-behind regex

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.


_______________
D a m n D i r t y A p e
Home Node | Email