I am trying to detect strings containing special characters like ä, ü, ö and ß
I have a list of allowed characters, and I am using it like this, to detect any string that contains anything else but these:
grepl("[^0-9a-zA-Z$%^*&]","aaüh")
However, this returns FALSE. So it fails to detect the special ü
.
How can I make explicit that only latin characters are allowed?