fork download
  1. string <- "<params description=\"some desc\" bgcol=\"255;0;0\"/>"
  2. lapply(strsplit(regmatches(string, regexec('bgcol="([^"]*)"', string))[[1]][2], ";"), as.integer)
  3. lapply(strsplit(regmatches(string, regexpr('bgcol="\\K[^"]*', string, perl=TRUE)), ";"), as.integer)
  4.  
Success #stdin #stdout 0.21s 185728KB
stdin
Standard input is empty
stdout
[[1]]
[1] 255   0   0

[[1]]
[1] 255   0   0