Home » PHP » PHP Strings » Question
  1. Which of the following would be a potential match for the Perl-based regular expression /fo{2,4}/ ?
    1. fooooool
    2. fol
    3. fool
    4. fooool
    5. fool and fooool both
Correct Option: E

This matches f followed by two to four occurrences of o.



Your comments will be displayed only after manual approval.