fork(2) download
  1. S <- "abcd2efghi2.txt"
  2. sub("\\d+(\\D*)$", "\\1", S)
Success #stdin #stdout 0.26s 175424KB
stdin
Standard input is empty
stdout
[1] "abcd2efghi.txt"