pdfcount icon indicating copy to clipboard operation
pdfcount copied to clipboard

Regex error in R 4.0

Open jackobailey opened this issue 4 years ago • 2 comments

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]*))?)".

jackobailey avatar Apr 27 '20 09:04 jackobailey

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

leeper avatar Apr 27 '20 21:04 leeper

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

lisalevinson avatar Aug 10 '22 21:08 lisalevinson