pdfcount
pdfcount copied to clipboard
Regex error in R 4.0
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]*))?)"
.
Thanks. Let me know if you happen to figure out the solution. PRs welcome!
I put in a pull request for this (#5) - just added an escape on the literal hyphen.