str <- "Regular Expression Language (AbcDfE-BB)"strsplit(sub(".*\\(([^()]+)\\).*", "\\1", str), "-", fixed=TRUE)
Standard input is empty
[[1]] [1] "AbcDfE" "BB"
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!