in reply to Re: Re: Re: multiple matches with regexpin thread multiple matches with regexp
$regexp="a{2}"; $_="aaaa"; push @a , $1 while m/(?=($regexp))./g; print join ( "-", @a ) . "\n"; [download]