fork(1) download
  1. example <- c("positive_1", "positive_2", "test_20_curve", "test_60_point", "percent_total")
  2. res <- sub("^(?:(?:.*\\D)?(\\d{2})(?:\\D.*)?|.+)$", "\\1", example)
  3. res <- res[nzchar(res)]
  4. res
Success #stdin #stdout 0.26s 39216KB
stdin
Standard input is empty
stdout
[1] "20" "60"