From: Ilyas Date: 2006-05-23T19:19:50+09:00 Subject: Problem with reqular expression 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/.