Copying Text from one field to another field if it has font color or background color?

I am trying to write a code in script, for copying only text which has red color font or if it has any background color. Please can anyone suggest me code for the same !