Suppose I have a string like this:
string = "Manoj Kumar Kashyap";
Now I want to create a regular expression to match where Ka appears after space and also want to get index of matching characters.
I am using java language.
See Question&Answers more detail:os