in reply to Integrating match counts into regex matching
Don't forget to have a local our $count; in front of that. And don't forget to buy a bullet-proof vest in case the maintenance programmer ever tracks you down./^(?>(?:a(?{ $count-- })|b(?{ $count++ }))+)(??{ $count==1 ? "" : "a" })\z/
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Integrating match counts into regex matching
by pat_mc (Pilgrim) on Dec 18, 2008 at 23:57 UTC | |
by tilly (Archbishop) on Dec 19, 2008 at 00:06 UTC |