good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
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 In reply to Re: look-behind regex
by DamnDirtyApe
|
|