OK, so I have a DCR with a replicant of N number of fields and I want to collect the ones between the IntroText.
while ($txt =~ m|\G<IntroText>(.*?)</IntroText>|img) {$outtxt.=" \n IntroText ".$1;}
$txt =~ m|<IntroText>(.*?)</IntroText>|img;
$outtxt.=" \n IntroText 1 ".$1;
If I feed it values of rep1 rep2 rep3 inside the desired tags (over many lines) the first regex returns nothing. The second gives me 3 rep1.
Any ideas ?