Modified Layout and RGB Parse with regular expression