x <- "Chemical: (BETA-CYFLUTHRIN = 118831)"regmatches(x, regexpr("(?<=\\().*?(?= =)", x, perl=TRUE))
Standard input is empty
[1] "BETA-CYFLUTHRIN"
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!