sample1 <- "הֻסְמַק"gsub("\\p{M}", "", sample1, perl=T)
Standard input is empty
[1] "הסמק"
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!