Keep It Simple, Stupid | |
PerlMonks |
Re: look-behind regexby DamnDirtyApe (Curate) |
on Jul 24, 2002 at 05:46 UTC ( [id://184710]=note: 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 Section
Seekers of Perl Wisdom
|
|