fork download
  1. example <- c("positive_1", "positive_2", "test_20_curve", "test_60_point", "percent_total")
  2. library(stringr)
  3. str_extract(example, "(?<!\\d)\\d{2}(?!\\d)")
  4.  
Success #stdin #stdout 0.31s 42048KB
stdin
Standard input is empty
stdout
[1] NA   NA   "20" "60" NA