s/[^atgc]+//g; [download]
In reply to Re^2: substr is behaving differently with small vs large strings by qq in thread substr is behaving differently with small vs large strings by wadunn