fork(1) download
  1. library(stringr)
  2. str = c("2019/01/01/07/556662_cba3a4fc-cb8f-4150-859f-5f21a38373d0")
  3. str_match(str, "/([^_/]+)_[^/\\s]*")[,2]
  4.  
  5. # [1] "556662"
Success #stdin #stdout 0.21s 190528KB
stdin
Standard input is empty
stdout
[1] "556662"