From e43568df7a3c657f7641b1ca36e15249ba90f210 Mon Sep 17 00:00:00 2001 From: "Y. Yu" <54338793+PursuitOfDataScience@users.noreply.github.com> Date: Tue, 16 Aug 2022 12:39:29 -0400 Subject: [PATCH] Update regexps.qmd (#1064) Added "'" --- regexps.qmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regexps.qmd b/regexps.qmd index 742ccc5..9622afb 100644 --- a/regexps.qmd +++ b/regexps.qmd @@ -356,7 +356,7 @@ There's no "and" operator built in to regular expressions so we have to tackle i words[str_detect(words, "a.*b|b.*a")] ``` -Its simpler to combine the results of two calls to `str_detect()`: +It's simpler to combine the results of two calls to `str_detect()`: ```{r} words[str_detect(words, "a") & str_detect(words, "b")]