in reply to Regex fun
which unfortunately does't do anything. I'd like to know why?
Update: Just found that there are actually some 1s in the input. If all sequences are short, you can just generate them:
my $re = join '|', map { qr/\+$_[ACGTNacgtn]{$_}/} 1..20; s/$re//g;
Should still be fairly efficient, especially with perl-5.10, which optimizes regex alternations with constant prefixes.
Second update: Added a missing \+ JadeNB++ for noticing.
|
|---|