JavaScript regular expressions. A string matches when the pattern is found anywhere in it, unless ^ and $ pin it down.
Which string matches: press 1 to 4 or click; exactly one option is right.
How many matches: type the number of matches the g flag finds and press Enter.
Tab skips and shows the answer.
Difficulty moves from character classes to quantifiers and anchors, groups, lazy against greedy, then lookahead and backreferences.
1. Which string matches /^ab+c$/ ? "ac" "abbc" "abcb" "aabc""abbc"
2. How many matches of /<.+?>/g in <a><b><i> ?3
3. How many matches of /(\w)\1/g in book tree cat ?2