VerbalExpressions / RVerbalExpressions

:speech_balloon: Create regular expressions easily
https://rverbalexpressions.netlify.com/
Other
280 stars 12 forks source link

Add quick testing function #12

Closed dmi3kno closed 5 years ago

dmi3kno commented 5 years ago

I suggest we add vectorized testing function to save ourselves some typing and allow piping into it

rx_test <- function(x, txt){
  regmatches(txt, gregexpr(x, txt, perl = TRUE))
}
tylerlittlefield commented 5 years ago

Sounds good, done.