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
A. Only 1
B. 2 and 3
C. 1, 3 and 4
D. 1 and 4
Answer: Option B
Solution(By Examveda Team)
This matches f followed by two to four occurrences of o.Related Questions on Regular Expressions
A. 1 and 2
B. 2 and 4
C. 1 and 4
D. 2 and 3
Join The Discussion