fork download
  1. a <- c("{.package:base73","for.package:base476",":.package:base9","print.package:graphics834")
  2. unlist(regmatches(a, regexec("package:\\K\\D+", a, perl=TRUE)))
Success #stdin #stdout 0.28s 41052KB
stdin
Standard input is empty
stdout
[1] "base"     "base"     "base"     "graphics"