I'd solve this in two steps. In the first one, match the whole repetition, than split it into single expressions:
my @source = $text =~ /(regex1)((?:regex2)+)(regex3)/g; my @repeated = $source[1] =~ /.../g; # or split or whatever
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
In reply to Re: Regex troubles...
by choroba
in thread Regex troubles...
by kepler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |