Give your strings a haircut with tidyverse-friendly regex.
The goal of haircut
is to provide a simple interface to regular expressions in R that covers most common usecases. It differs from base and string*
packages by:
- Having a simple, memorable API.
regex_match
,regex_match_except
,regex_sub
- 3 Functions!
- Having
%>%
,dplyr
, andpurrr
friendly arguments and outputs.- Data vector is the first argument.
- Always returns a vector of strings!
- No dependencies on other R packages or C++ libraries.
- Installs in seconds!