• Source
    1. test<-c("Score (ABC): 2 (of 100); see note","Amount of ABC; 30%","Presence of ABC: negative")
    2. test<-regmatches(toupper(test), gregexpr("[:;][^;]*", toupper(test), perl=TRUE))
    3. test<-gsub("\\([^()]*\\)|\\D", "", test)
    4. test