fork download
  1. x <- c("DECIMAL", "DECIMAL(14,5)", "RAND(1)")
  2. sub("^.*?(\\(.*\\))?$", "\\1", x, perl=TRUE)
Success #stdin #stdout 0.32s 38584KB
stdin
Standard input is empty
stdout
[1] ""       "(14,5)" "(1)"