From 1380affcd259c8723b51cd48bdc862c0deee3934 Mon Sep 17 00:00:00 2001 From: "Y. Yu" <54338793+PursuitOfDataScience@users.noreply.github.com> Date: Tue, 16 Aug 2022 12:39:20 -0400 Subject: [PATCH] Update regexps.qmd (#1065) Fixed a few errors. Could you also explain why there are two dots in "..\\1" rather than three dots or some other numbers of dots? --- regexps.qmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regexps.qmd b/regexps.qmd index 5706d9a..742ccc5 100644 --- a/regexps.qmd +++ b/regexps.qmd @@ -456,7 +456,7 @@ All of these are these described below. ### Matching a repeated pattern You can refer back to previously matched text inside parentheses by using **back reference**. -Back references are usually numbered: `\1` refers to the match contained in the first parentheses, `\2` in the the second parentheses, and so on. +Back references are usually numbered: `\1` refers to the match contained in the first parenthesis, `\2` in the second parenthesis, and so on. For example, the following pattern finds all fruits that have a repeated pair of letters: ```{r}