Skip to content

Commit

Permalink
Update strings-patterns.yml
Browse files Browse the repository at this point in the history
Several answers are right
  • Loading branch information
l-vo authored Jan 12, 2019
1 parent 88ba1d1 commit c2df61c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/strings-patterns.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,10 @@ questions:
question: 'Which PCRE regular expression will match the string PhP5-rocks'
answers:
- {value: '/^[hp1-5]*\-.*/i', correct: true}
- {value: '/[hp1-5]*\-.?/', correct: false}
- {value: '/[hp1-5]*\-.?/', correct: true}
- {value: '/[hp][1-5]*\-.*/', correct: false}
- {value: '/[PhP]{3}[1-5]{2,3}\-.*$/', correct: false}
- {value: '/[a-z1-5\-]*/', correct: false}
- {value: '/[a-z1-5\-]*/', correct: true}
-
question: 'If regular expressions must be used, in general which type of regular expression functions available to PHP is preferred for performance reasons?'
answers:
Expand Down

0 comments on commit c2df61c

Please sign in to comment.