How do I remove spaces immediately after the tags <sub> or <sup> and immediately before the closing tags </sub> or </sup> in one replace?
Sample text
Expected output
I can find using (<su(b|p)>)\s|\s(</su(b|p)>) but how do I replace?
Sample text
Code: Select all
Today <sup> 1</sup> is <sup> x </sup> the day <sub> y</sub> when <sub>y </sub> 15 people <sup> 5 </sup> died <sub> 5 </sub>
Code: Select all
Today <sup>1</sup> is <sup>x</sup> the day <sub>y</sub> when <sub>y</sub> 15 people <sup>5</sup> died <sub>5</sub>