I need help with regex pattern which will replace/get font size of first "span" before each table and use that span font-size in table style definition but span needs to be without close tag, not yet closed span tag.
from:
<span style="font-size:10px;">
<table>...</table>
</span>
to:
<span style="font-size:10px;">
<table style="font-size:10px;">...</table>
</span>
It needs to go all over and for each "table" that is inside some span with font size do same thing.