r-lib / rex

Friendly regular expressions for R.
https://rex.r-lib.org
Other
334 stars 27 forks source link

generic match function #1

Closed jimhester closed 10 years ago

jimhester commented 10 years ago

Now that we have easier regular expression construction working pretty well, it would be nice to also provide an easier way to extract match results, as users probably shouldn't be expected to write their own function every time e.g. https://github.com/kevinushey/rex/blob/5f4d8f7cfc48c32f489e6f330a62254bc23c7198/tests/testthat/test-common.R#L78-L84

I wrote some functions m and s for match and substitute we could probably tweak some time ago for my perlrer package https://github.com/jimhester/perlrer/blob/master/R/perlrer.R#L40-L71

jimhester commented 10 years ago

closed by 64d6bbcd05d8a95025