What will be the result when non greedy repetition is used on the pattern /a+?b/?
(a) Matches the letter b preceded by the fewest number of a’s possible
(b) Matches the letter b preceded by any number of a
(c) Matches letter a preceded by letter b, in the stack order
(d) Matches letter a present in the string
I got this question in an interview.
The question is from Pattern Matching and Regular Expressions in portion Classes and Modules in JavaScript of JavaScript
Select the correct answer from above options
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)