[grep] [#NY8] incorrect example `dogs? does not match "dogss" (two "s")`

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

  • ^log matches "logs" (starts with “log”)

  • ^\d\d\d matches "123abc"

to make this a correct example, the pattern should be dogs?$

1 Like

Hey @matthew-russo, great catch! We’re addressing the issue in this PR.

Let us know if you spot anything else!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.