string input = "MKWVTFISLLLLFSSAYSRGVFRRDTHKSEIAHRFKDLGEEHFKGLVLIAFSQYLQVK"; Regex regex = new Regex("([^KR])*[KR]"); MatchCollection ms = regex.Matches(input); foreach (Match m in ms) { Console.WriteLine(m.Value); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)