E.3 Summary
For a compact and useful overview of R’s regex options, see the RStudio cheatsheet on Basic Regular Expressions in R (contributed by Ian Kopacka):
.](images/cheat/regex.png)
Figure E.2: Basic regular expressions in R (by Ian Kopacka)
available at RStudio cheatsheets.
Additionally, the back page of the RStudio cheatsheet on the stringr package (Wickham, 2019b) contains a useful overview on regular expressions:
.](images/cheat/strings.png)
Figure E.3: Text and string manipulation with stringr and regular expressions
from RStudio cheatsheets.
For more information on creating and manipulating strings of text, see Chapter 9 on Strings of text.
References
Wickham, H. (2019b). stringr: Simple, consistent wrappers for common string operations. Retrieved from https://CRAN.R-project.org/package=stringr