From 5485a91b491ef3aa8c994b6015743963dfa4ec44 Mon Sep 17 00:00:00 2001 From: Hadley Wickham Date: Thu, 6 Oct 2022 09:23:34 -0500 Subject: [PATCH] Remove typo --- regexps.qmd | 5 ----- 1 file changed, 5 deletions(-) diff --git a/regexps.qmd b/regexps.qmd index 96c47f3..c7afd5d 100644 --- a/regexps.qmd +++ b/regexps.qmd @@ -427,10 +427,6 @@ str_view(x, "-x{2,}-") # [2, Inf) str_view(x, "-x{2,3}-") # [2, 3] ``` -```{r} -str_view(fruit, "") -``` - ### Operator precedence and parentheses What does `ab+` match? @@ -834,4 +830,3 @@ head(dir(pattern = "\\.Rmd$")) Another useful reference is [https://www.regular-expressions.info/](https://www.regular-expressions.info/tutorial.html). It's not R specific, but it covers the most advanced features and explains how regular expressions work under the hood. -