You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Congratulations for the package, re2_detect and re2_replace are much faster than their stringr and stringi counterparts.
I haven't seen a re2_extract similar to str_extract stringr. I can get the same results with as.vector(re2_match(...)) or with re2_extract_replace(text,"(pattern)", "\\1"), but it turns out to be slower than str_extract.
Also, the back references in the re2_extract_replace need double backslashes.
Finally, the development version didn't install on both Mac and Linux, only the cran version.
The text was updated successfully, but these errors were encountered:
I'll look into re2_extract when I get some time.
Strange, dev version should install on Mac since I develop on Mac and it is the same code. I also tested on debian.
jjesusfilho
changed the title
Are there plans to implement re2_extract?
Any plans to implement re2_extract?
Jun 23, 2021
Congratulations for the package,
re2_detect
andre2_replace
are much faster than their stringr and stringi counterparts.I haven't seen a
re2_extract
similar tostr_extract
stringr. I can get the same results withas.vector(re2_match(...))
or withre2_extract_replace(text,"(pattern)", "\\1")
, but it turns out to be slower thanstr_extract
.Also, the back references in the
re2_extract_replace
need double backslashes.Finally, the development version didn't install on both Mac and Linux, only the cran version.
The text was updated successfully, but these errors were encountered: