I have a pattern in a file as follows:
public "any word" "any word"(
example:
public object QuestionTextExists(QuestionBankProfileHandler QBPH)
Now, I want only the "QuestionTextExists" and any number of space can occur at left and right side of the "object"(Not exactly object, it can be any word). Can anyone Please help me how to do this using regular expression.
Thank You for answers.But how can i extract only the method name from that pattern?