From ab99abc6bb0d25e6b2318aca712c89a249e8d795 Mon Sep 17 00:00:00 2001 From: Phil Reed Date: Mon, 9 Dec 2019 19:23:45 +0000 Subject: [PATCH] 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 https://github.com/LibraryCarpentry/lc-data-intro/issues/161 --- episodes/02-match-extract-strings.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/episodes/02-match-extract-strings.md b/episodes/02-match-extract-strings.md index 2a43b1f2..31b319b3 100644 --- a/episodes/02-match-extract-strings.md +++ b/episodes/02-match-extract-strings.md @@ -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. @@ -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}