Displaying 2 results from an estimated 2 matches for "qdfroe".
Did you mean:
dfree
2023 Jul 23
1
Bug in perl=TRUE regexp matching?
...t;, strings)
[1] "85" "JS" "??" "J-FD"
> gsub(regex, "", strings, perl = TRUE)
[1] "85" "JS" "???????????????????"
"J-F?oD"
and the website https://regex101.com/r/QDFrOE/1 gives the first answer
when the regex option /u ("match with full Unicode) is specified, but
the second answer when it is not.
Now I'm not at all sure that that website is authoritative, but this
looks like a flag may have been missed in the `perl = TRUE` case.
Duncan Murdoch
2023 Jul 25
1
Bug in perl=TRUE regexp matching?
...FD"
>>>
>>> ? > gsub(regex, "", strings, perl = TRUE)
>>> [1] "85"????????????????? "JS"????????????????? "???????????????????"
>>> "J-F?oD"
>>>
>>> and the website https://regex101.com/r/QDFrOE/1 gives the first answer
>>> when the regex option /u ("match with full Unicode) is specified, but
>>> the second answer when it is not.
>>>
>>> Now I'm not at all sure that that website is authoritative, but this
>>> looks like a flag may have...