http://qs321.pair.com?node_id=298522


in reply to Re: Re: Re: multiple matches with regexp
in thread multiple matches with regexp

To avoid experimental features one may choose the following:
$regexp="a{2}"; $_="aaaa"; push @a , $1 while m/(?=($regexp))./g; print join ( "-", @a ) . "\n";
Greetings