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

Regex error in R 4.0 #4

Open
jackobailey opened this issue Apr 27, 2020 · 2 comments
Open

Regex error in R 4.0 #4

jackobailey opened this issue Apr 27, 2020 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@jackobailey
Copy link

word_count breaks under R 4.0 due to the new build moving from PCRE1 to PRCE2.

Looks to be the various escaped elements in this string url_regex <- "((([A-Za-z]{3,9}:(?:\\/\\/)?)(?:[-;:&=+$,\\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=+$,\\w]+@)[A-Za-z0-9.-]+)((?:\\/[\\+~%\\/.\\w-_]*)?\\??(?:[-\\\\+=&;%@.\\w_]*)#?(?:[\\w]*))?)".

@leeper leeper added bug Something isn't working help wanted Extra attention is needed labels Apr 27, 2020
@leeper
Copy link
Owner

leeper commented Apr 27, 2020

Thanks. Let me know if you happen to figure out the solution. PRs welcome!

@lisalevinson
Copy link

lisalevinson commented Aug 10, 2022

I put in a pull request for this (#5) - just added an escape on the literal hyphen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants