In this recipe, you have seen a few examples of regular expressions, but there are a lot of regular expressions that can be used within the gsub() function to perform text processing. There are libraries available in R that use regular expressions to develop string processing functions such as stringr, stringi, and regex. Moreover, grep() is also able to do text processing using regular expressions.