Skip to content

Commit 494b0a0

Browse files
committed
Update examples for the ? quantifier in documentation to include end-of-string matching.
1 parent 89e7a2f commit 494b0a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stage_descriptions/base-10-ny8.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ In this stage, you'll add support for the zero or one quantifier (`?`).
55
The `?` quantifier makes the preceding character or character class optional, meaning it can appear either once or not at all.
66

77
For example:
8+
89
- `dogs?` matches `"dog"` (zero `"s"`)
910
- `dogs?` matches `"dogs"` (one `"s"`)
10-
- `dogs?` does not match `"dogss"` (two `"s"`)
1111
- `dogs?` does not match `"cat"` (doesn't match `"dog"` pattern)
1212
- `colou?r` matches `"color"` (zero `"u"`)
1313
- `colou?r` matches `"colour"` (one `"u"`)

0 commit comments

Comments
 (0)