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")]