search for: pcrepattern

Displaying 2 results from an estimated 2 matches for "pcrepattern".

2023 Jul 25
1
Bug in perl=TRUE regexp matching?
...token by >> PCRE.? I think this makes it a little clearer what's going on: >> >> ????? gsub("\\w", "a", "?", perl=TRUE) >> ????? [1] "?" >> >> So no match.? The PCRE docs >> https://www.pcre.org/original/doc/html/pcrepattern.html (this might be >> the old docs, but it works for our purposes here) mention we can turn on >> unicode property matching with the "(*UCP)" token: >> >> ?????? gsub("(*UCP)\\w", "a", "?", perl=TRUE) >> ?????? [1] "a"...
2023 Jul 23
1
Bug in perl=TRUE regexp matching?
The help page for `?gsub` says (in the context of performance considerations): "... just one UTF-8 string will force all the matching to be done in Unicode" However, this thread on SO: https://stackoverflow.com/q/76749529 gives some indication that this is not true for `perl = TRUE`. Specifically: > strings <- c("89 562", "John Smith", "???????