I have the following regular expression in an R script:
grepl("xe9", "MY TEXT", fixed = FALSE, ignore.case = TRUE, perl = FALSE)
我有以下错误:
Error in grepl("xe9", "MY TEXT", fixed = FALSE, ignore.case = TRUE, :
regular expression is invalid in this locale
“xe9”是“é”的单一编码,从档案中读作。
How can I fix this? Additionally, is there a useful resource on locales w.r.t regular expression in R?