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. -