fork download
  1. library(stringr)
  2.  
  3. myvec<-c("increa_0_1-1","increa_9_25-112","increa_25-50-76" )
  4.  
  5. str_match(myvec, "_([0-9]+)")[,2]
Success #stdin #stdout 0.32s 42260KB
stdin
Standard input is empty
stdout
[1] "0"  "9"  "25"