πŸ“Š Machine Learning
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
πŸ’¬ Discuss
βœ… 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.

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.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
124
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
81%
Success Rate