Skip to content

Commit

Permalink
Corrected number of communi matches, issue #161
Browse files Browse the repository at this point in the history
Corrected matches of `communi` from 13 to 15.
Corrected matches of `[Cc]ommuni` from 14 to 16 in two places.
Issue #161
#161
  • Loading branch information
PhilReedData authored Dec 9, 2019
1 parent a0b239b commit ab99abc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions episodes/02-match-extract-strings.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ If you look in the box on the right of the screen, you see that the expression m
{: .challenge}

> ## Exploring effect of expressions matching different words
> Change the expression to `communi` and you get 13 full matches of several words. Why?
> Change the expression to `communi` and you get 15 full matches of several words. Why?
> > ## Solution
> >
> > 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.
Expand All @@ -51,10 +51,10 @@ If you look in the box on the right of the screen, you see that the expression m
{: .challenge}

> ## Taking capitalization into consideration
> Type the expression `[Cc]ommuni`. You get 14 matches. Why?
> Type the expression `[Cc]ommuni`. You get 16 matches. Why?
> > ## Solution
> >
> > The word Community is present in the text with a capital `C` and with a lowercase `c` 14 times.
> > The word Community is present in the text with a capital `C` and with a lowercase `c` 16 times.
> >
> {: .solution}
{: .challenge}
Expand Down

0 comments on commit ab99abc

Please sign in to comment.