Try printing what rgb is before running a regular expression. It is possible that the input is different.
I assume that you are checking the property dom_element.style. Perhaps IE will never convert this property to format rgb(r, g, b)in the first place.
source
share