Skip to content

Commit

Permalink
Merge pull request #162 from PhilReedData/gh-pages
Browse files Browse the repository at this point in the history
Corrected number of `communi` matches, issue #161
  • Loading branch information
sharilaster authored Dec 9, 2019
2 parents a0b239b + ab99abc commit cf9b8aa
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 cf9b8aa

Please sign in to comment.