in reply to How to remove Newline
Said this,
what is that "N"?!? Didn't you say that your string only contains the letters ACGT?my $regex = qr/ N+ | (?: (?=$allowed) . )* . /x;
"match zero or more occurrencies of a group composed by an allowed sequence and any charachter followed by (another) any charachter (without including the allowed sequences in the match)."Is this what that you really want?
|
|---|