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?
This commit is contained in:
Y. Yu 2022-08-16 12:39:20 -04:00 committed by GitHub
parent f58102a4f2
commit 1380affcd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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}