M

Mr. Dubey • 52.77K Points
Coach

Q. What is the most essential purpose of parantheses in regular expressions ?

  • (A) Define pattern matching techniques
  • (B) Define subpatterns within the complete pattern
  • (C) Define portion of strings in the regular expression
  • (D) All of the mentioned

Explanation by: Mr. Dubey
When a regular expression is successfullyy matched against a target string, it is possible to extract the portions of the target string that matched any particular paranthesized subpattern. The essential purpose of parantheses in regular expressions is to define subpatterns within the complete pattern.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics