fork download
  1. xx <- "gee(formula = breaks ~ tension, id = wool, data = warpbreaks)"
  2. sub(".*\\bid\\s*=\\s*(\\w+).*", "\\1", xx)
  3. sub(".*\\bid\\s*=\\s*([^,]+).*", "\\1", xx)
Success #stdin #stdout 0.18s 183680KB
stdin
Standard input is empty
stdout
[1] "wool"
[1] "wool"