1.

Which capturing group can represent the entire expression?(a) group *(b) group 0(c) group * or group 0(d) None of the mentionedThis question was addressed to me in unit test.My enquiry is from Regular Expression in portion Regular Expressions of Java

Answer»

Correct option is (B) group 0

The best EXPLANATION: Group 0 is a special group which REPRESENTS the ENTIRE expression.



Discussion

No Comment Found

Related InterviewSolutions