Skip to content

Commit

Permalink
Change * to $ in Anchors Section of strings.Rmd
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bgreenwell committed Dec 1, 2015
1 parent 600cdaa commit 6b47330
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion strings.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 6b47330

Please sign in to comment.