Very new to the world of regex and looking for a solution that will strip out all style tags from the HTML string. Example:
const myString = '<div>The quick brown <span style="color:brown;">fox</span> jumps over the lazy <span style="font-weight:bold">dog</span>.</div>';
console.log(myString.replaceAll(/style=".*?\"/, ''));
The desired output would be to strip out everything starting with style=" and the closing "
//<div>The quick brown <span>fox</span> jumps over the lazy <span>dog</span></div>.
Severely struggling with regex, any help appreciated!