r-lib / rex

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

named argument in `capture` should be used as the capture name. #27

Open jimhester opened 9 years ago

jimhester commented 9 years ago

So instead of

rex(capture(name = 'test', anything))

You can write

rex(capture(test = anything))

Or the short form

rex(.(test = anything))

It should not require a huge change except for the capture implementation.

I am undecided whether to try and maintain backwards compatibility with the previous behavior or not.