ExamVeda
Login
Home
This question belongs to PHP Regular Expressions
Regular Expressions
?

Which of the following would be a potential match for the Perl-based regular expression /fo{2,4}/ ?
1. fol
2. fool
3. fooool
4. fooooool

Answer & Solution
Correct Answer: Option B
This matches f followed by two to four occurrences of o.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.