fork download
  1. x <- "bs(e17age, 3)1"
  2. sub("^bs\\(([^,]*).*", "\\1", x)
  3.  
Success #stdin #stdout 0.45s 22816KB
stdin
Standard input is empty
stdout
[1] "e17age"