http://qs321.pair.com?node_id=687746


in reply to cleaving a sequence with specific alphabets

Its not entirely clear for me what you try to do.

... my @s = split / (?<=[KR]) # split on K,R (?!P) # but not if in front of a P /x, 'APADPKGSTIDRPDAARTLTVHKCEQTDTRGVKEGTRNEDPQAECKPVSDV +EFTITKLNVD'; print join "\n", @s; ...

The above would be my first guess here.

Regards

mwa