in reply to Splitting only on internal pattern, not at start or end of string
The problem appears when I also have Ns at the beginning or end of the sequenceSo, remove the N's at the beginning and at the end, and use your old algorithm:
$sequence =~ s/^N+|N+$//g;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Splitting only on internal pattern, not at start or end of string
by hdb (Monsignor) on Jan 16, 2014 at 15:37 UTC |