ExamVeda
Login
Home
This question belongs to Javascript Classes And Modules
Classes and Modules
?

What will be the result when non greedy repetition is used on the pattern /a+?b/ ?

Answer & Solution
Correct Answer: Option A
Using non greedy repetition may not always produce the results you expect. /a+?b/ matches the letter b preceded by the fewest number of a’s possible.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.