Q. What is the most essential purpose of parantheses in regular expressions ?
β
Correct Answer: (B)
Define subpatterns within the complete pattern
Explanation: 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.