How can I use regular expressions to match all tags with a style attribute and a color value, then extract their color value and replace the tag with <color=colorValue>content, please help me, thank you
//original tag
// <p style="color:#ffffff;">content</p>
// <span style="color:#ffffff;">content</span>
// <i style="color:#ffffff;">content</i>
//...
// expect replace tag
//<color=#ffffff>content</color>