grep stage #NY8 has an incorrect example:
dogs? does not match dogss (two “s”)
this correctly matches the substring dogs.
in a terminal with a text file test.txt containing dogss produces a match with:
grep -E ‘dogs?’ test.txt
previous challenges such as #RR8 have examples where it shows the pattern matching a prefix without needing to match the entire string
-
^logmatches"logs"(starts with “log”) -
^\d\d\dmatches"123abc"
to make this a correct example, the pattern should be dogs?$