Copy Text of a specific color from word document

I have a requirement of filtering green text from a word document and pasting it in another with its heading and subheading.
I tried using the advanced search option of word; it filters all the green text from the document but then I am not able to find an effective way of locating the text’s heading & subheading.
Can someone suggest a better approach? is it a use case for rpa or i should look at some scripting options to achieve it?

Thanks in advance for your response.

Hi @rmathur3,
Welcome to the Community!
Indeed working with colored text is still a hard thing. There was a topic related to this:

Currently there’s no dedicated activity for such case.