in reply to Regex troubles...
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,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex troubles...
by kepler (Scribe) on Apr 20, 2016 at 13:42 UTC | |
by choroba (Cardinal) on Apr 23, 2016 at 17:39 UTC | |
by AnomalousMonk (Archbishop) on Apr 23, 2016 at 19:24 UTC | |
by choroba (Cardinal) on Apr 23, 2016 at 19:28 UTC | |
by AnomalousMonk (Archbishop) on Apr 23, 2016 at 20:45 UTC | |
by AnomalousMonk (Archbishop) on Apr 23, 2016 at 19:57 UTC | |
| |
by Anonymous Monk on Apr 23, 2016 at 19:56 UTC | |
by AnomalousMonk (Archbishop) on Apr 23, 2016 at 20:16 UTC | |
|