I have this string:

Color1  R=144 G=248 B=255

Need regular expression for get R,G,B
How I can simplify it:

lines.gsub!(/Color1  R=(\d+) G=(\d+) B=(\d+)/) {
      puts $1
      puts $2
      puts $3
}


-- 
Posted via http://www.ruby-forum.com/.