A regular expression, regex or regexp is a sequence of characters that define a search pattern.
It allows you to create patterns that help match, locate, and manage text.
A regex is passed to string function to perform functions.
Ex: str_detect(name,regrex("s",TRUE))