in reply to cleaving a sequence with specific alphabets

I don't understand. Can you say which of the following cases are good candidates to divide string?

K R
K P
K any_other_char
P K
P R
P any_char
R K
R P
R any_char

I think look-ahead assertion will be the solution for your problem, but please asnwer above question first.

  • Comment on Re: cleaving a sequence with specific alphabets