Closed jimhester closed 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
m
s
closed by 64d6bbcd05d8a95025
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
ands
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