Examveda
Examveda

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

Answer: Option B

Solution(By Examveda Team)

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.

This Question Belongs to Javascript >> Classes And Modules

Join The Discussion

Related Questions on Classes and Modules