stringi icon indicating copy to clipboard operation
stringi copied to clipboard

stri_*_first/last_charclass - merge arg

Open bartektartanus opened this issue 10 years ago • 2 comments

Now it works like this:

stri_extract_last_charclass("abc123","\\p{Nd}")
[1] "3"

and we could add merge parameter (like in extract_all function) so it could work like this:

stri_extract_last_charclass("abc123","\\p{Nd}", merge=TRUE)
[1] "123"

bartektartanus avatar Jul 06 '14 13:07 bartektartanus

may be. but the same for the other *charclass funs?

gagolews avatar Jul 10 '14 19:07 gagolews

Absolutely :)

bartektartanus avatar Jul 10 '14 20:07 bartektartanus