Skip to content

Commit 10c2dcb

Browse files
authored
Corrected number of communi matches, issue #161
Corrected matches of `communi` from 13 to 15. Corrected matches of `[Cc]ommuni` from 14 to 16 in two places. Issue #161 #161
1 parent 131026b commit 10c2dcb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_episodes/02-match-extract-strings.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ If you look in the box on the right of the screen, you see that the expression m
4242
{: .challenge}
4343

4444
> ## Exploring effect of expressions matching different words
45-
> Change the expression to `communi` and you get 13 full matches of several words. Why?
45+
> Change the expression to `communi` and you get 15 full matches of several words. Why?
4646
> > ## Solution
4747
> >
4848
> > Because the string 'communi' is present in all of those words, including `communi`cation and `communi`ty. Because the expression does not have a word boundary, this expression would also match in`communi`cado, were it present in this text. If you want to test this, type `incommunicado` into the text somewhere and see if it is found.
@@ -51,10 +51,10 @@ If you look in the box on the right of the screen, you see that the expression m
5151
{: .challenge}
5252

5353
> ## Taking capitalization into consideration
54-
> Type the expression `[Cc]ommuni`. You get 14 matches. Why?
54+
> Type the expression `[Cc]ommuni`. You get 16 matches. Why?
5555
> > ## Solution
5656
> >
57-
> > The word Community is present in the text with a capital `C` and with a lowercase `c` 14 times.
57+
> > The word Community is present in the text with a capital `C` and with a lowercase `c` 16 times.
5858
> >
5959
> {: .solution}
6060
{: .challenge}

0 commit comments

Comments
 (0)