fork download
  1. sub("^0*(0)$|^0+", "\\1", c("005", "0AB", "000", "0"))
Success #stdin #stdout 0.21s 39080KB
stdin
Standard input is empty
stdout
[1] "5"  "AB" "0"  "0"