fork(8) download
  1. x <- "2019/01/01/07/556662_cba3a4fc-cb8f-4150-859f-5f21a38373d0"
  2. regmatches(x, regexpr(".*/\\K[^_]+", x, perl=TRUE))
  3. sub(".*/([^_]+).*", "\\1", x)
Success #stdin #stdout 0.18s 185728KB
stdin
Standard input is empty
stdout
[1] "556662"
[1] "556662"