(red\s*)([0-9]*.{0,1}[0-9]*)(\s*green\s*)([0-9]*.{0,1}[0-9]*)(\s*blue\s*)([0-9]*.{0,1}[0-9]*)And in Replace with::
rgb<\2,\4,\6>Pressing Replace All clean it the code making it more compact and readable
(red\s*)([0-9]*.{0,1}[0-9]*)(\s*green\s*)([0-9]*.{0,1}[0-9]*)(\s*blue\s*)([0-9]*.{0,1}[0-9]*)And in Replace with::
rgb<\2,\4,\6>Pressing Replace All clean it the code making it more compact and readable