The pattern for split isn't terribly complicated either:
Update: /[^N]\KN++\B/ with a \K will also work, as long as you don't capture the gaps.my @contigs = split /(?<=[^N])N++\B/, $sequence{$key};
In reply to Re: Splitting only on internal pattern, not at start or end of string
by oiskuu
in thread Splitting only on internal pattern, not at start or end of string
by BiologySwede
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |