From 6b47330ea41847d6501d77097edbd5aecd9098fd Mon Sep 17 00:00:00 2001 From: Brandon Greenwell Date: Tue, 1 Dec 2015 14:27:35 -0500 Subject: [PATCH] Change `*` to `$` in Anchors Section of strings.Rmd I'm just learning regular expressions, but I think you meant to use $ instead of * in the second bullet point in the section titled Anchors in strings.Rmd. --- strings.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strings.Rmd b/strings.Rmd index e3bd375..3e4dc1c 100644 --- a/strings.Rmd +++ b/strings.Rmd @@ -248,7 +248,7 @@ In this book, I'll write a regular expression like `\.` and the string that repr By default, regular expressions will match any part of a string. It's often useful to _anchor_ the regular expression so that it matches from the start or end of the string. You can use: * `^` to match the start of the string. -* `*` to match the end of the string. +* `$` to match the end of the string. ```{r} x <- c("apple", "banana", "pear")