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.
This commit is contained in:
Brandon Greenwell 2015-12-01 14:27:35 -05:00
parent 600cdaaefe
commit 6b47330ea4
1 changed files with 1 additions and 1 deletions

View File

@ -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")