- or download this
while (m/\+([0-9]+)[ACGTNacgtn]/g) {
print "diff+: $1\n";
my $m = $1;
s/\+[0-9]+[ACGTNacgtn]{$m}//
}
- or download this
s/\G\+$1[$bases]{$1}// while /(?=\+([0-9]+))/g;
- or download this
1 while s/(?<=\+)([0-9]+)[$bases]/$1 - 1/eg;
- or download this
1 while s/\+([0-9]+)[aAgGcC]/$1 > 1 ? '+' . $1 - 1 : ''/eg;