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/
In reply to Re: Integrating match counts into regex matching
by tilly
in thread Integrating match counts into regex matching
by pat_mc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |