comment <- "Honestly it\031s right up there with Out of the Woods and Cruel Summer for me so maybe that\031s saying more about me than it does about the songs \005\002 meh I\031m still going to bop"regmatches(comment, gregexpr("\\p{Cc}+", comment, perl=TRUE))grepl("\\p{Cc}", comment, perl=TRUE)
Standard input is empty
[[1]] [1] "\031" "\031" "\005\002" "\031" [1] TRUE
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!