x <- "[APPLE/O.ORANGE*PLUM-11]"gsub("[^\\w.-]", " ", x, perl=TRUE)
Standard input is empty
[1] " APPLE O.ORANGE PLUM-11 "
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!