Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any plans to implement re2_extract? #2

Open
jjesusfilho opened this issue Jun 21, 2021 · 1 comment
Open

Any plans to implement re2_extract? #2

jjesusfilho opened this issue Jun 21, 2021 · 1 comment

Comments

@jjesusfilho
Copy link

jjesusfilho commented Jun 21, 2021

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.

@girishji
Copy link
Owner

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 jjesusfilho changed the title Are there plans to implement re2_extract? Any plans to implement re2_extract? Jun 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants