Merge pull request #12 from bgreenwell/patch-1
Change `*` to `$` in Anchors Section of strings.Rmd
This commit is contained in:
commit
539cbe8281
|
@ -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:
|
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 start of the string.
|
||||||
* `*` to match the end of the string.
|
* `$` to match the end of the string.
|
||||||
|
|
||||||
```{r}
|
```{r}
|
||||||
x <- c("apple", "banana", "pear")
|
x <- c("apple", "banana", "pear")
|
||||||
|
|
Loading…
Reference in New Issue