fork download
  1. name_2 = gsub("(.+?)(?:\\..+)?", "\\1", "deriv.x")# your code goes here
  2. print(name_2)
Success #stdin #stdout 0.19s 183680KB
stdin
Standard input is empty
stdout
[1] "deriv"