From 5e4eae12aa467c966538c4748a2cd0a797b502bb Mon Sep 17 00:00:00 2001 From: Will Beasley Date: Sat, 4 Feb 2023 14:35:20 -0600 Subject: [PATCH 1/2] closing backtick for `sub()` --- manuscript/regex.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manuscript/regex.md b/manuscript/regex.md index 9758c19..0008e7d 100644 --- a/manuscript/regex.md +++ b/manuscript/regex.md @@ -309,7 +309,7 @@ Notice that the `sub()` function found the first match (at the beginning of the [1] "January 1, 2007" ~~~~~~~~ -The `sub() and `gsub()` functions can take vector arguments so we don't have to process each string one by one. +The `sub()` and `gsub()` functions can take vector arguments so we don't have to process each string one by one. {line-numbers=off} From 44e0ed6f461c65528c119ed1493801c4e1b44504 Mon Sep 17 00:00:00 2001 From: Will Beasley Date: Sat, 4 Feb 2023 14:37:51 -0600 Subject: [PATCH 2/2] closing backtick for `sub()` --- manuscript/regex.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manuscript/regex.Rmd b/manuscript/regex.Rmd index 33b0611..9babb04 100644 --- a/manuscript/regex.Rmd +++ b/manuscript/regex.Rmd @@ -221,7 +221,7 @@ Notice that the `sub()` function found the first match (at the beginning of the gsub("
[F|f]ound on |
", "", x) ``` -The `sub() and `gsub()` functions can take vector arguments so we don't have to process each string one by one. +The `sub()` and `gsub()` functions can take vector arguments so we don't have to process each string one by one. ```{r} r <- regexpr("
[F|f]ound(.*?)
", homicides[1:5])