diff --git a/strings.Rmd b/strings.Rmd index 51c974b..dd1f222 100644 --- a/strings.Rmd +++ b/strings.Rmd @@ -364,7 +364,7 @@ Note that the precedence of these operators is high, so you can write: `colou?r` ### Grouping and backreferences -You learned about parentheses earlier as a way to disambiguate complex expression. They do one other special thing: they also define numeric groups that you can refer to with _backreferences_, `\1`, `\2` etc.For example, the following regular expression finds all fruits that have a pair of letters that's repeated. +You learned about parentheses earlier as a way to disambiguate complex expression. They do one other special thing: they also define numeric groups that you can refer to with _backreferences_, `\1`, `\2` etc. For example, the following regular expression finds all fruits that have a pair of letters that's repeated. ```{r, cache = FALSE} str_view(fruit, "(..)\\1", match = TRUE) @@ -602,7 +602,7 @@ sentences %>% #### Exercises -1. Replace all `/`'s in a string with `\`'s. +1. Replace all `/`s in a string with `\`s. ### Splitting