fork download
  1. string99 <- c("Foo /10", "Foo Bar 7 / 0", "FooBar 25 / 5", "I do 156 / ")
  2. gsub("^([^\\d/]*)|[^[:alnum:][:space:]]","\\1,",string99, perl=TRUE)
Success #stdin #stdout 0.22s 39104KB
stdin
Standard input is empty
stdout
[1] "Foo  ,,10"      "Foo Bar ,7 , 0" "FooBar ,25 , 5" "I do ,156 , "