Update regexps.qmd (#1064)

Added "'"
This commit is contained in:
Y. Yu 2022-08-16 12:39:29 -04:00 committed by GitHub
parent 1380affcd2
commit e43568df7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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