VerbalExpressions / RVerbalExpressions

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

Consider a constructor #4

Closed tylerlittlefield closed 5 years ago

tylerlittlefield commented 5 years ago

Would be nice to have something that "starts" the verbal expression, mostly likely the name of the function would be whatever prefix is decided on. So if rx_ is the prefix, we would do something like:

rx() %>% 
  rx_seek_prefix("(") %>% 
  rx_anything_lazy() %>% 
  rx_seek_suffix(")")

Instead of:

rx_seek_prefix(value = "(") %>% 
  rx_anything_lazy() %>% 
  rx_seek_suffix(")")