http://www.perlmonks.org?node_id=951451


in reply to Regular expression

You ought to be using an HTML parser. But you may get away with:
s/<span\s+style=\s*"[^"]*font-weight:\s*bold[^"]*"\s*>/<span style="fo +nt-weight: bold">/g;