I have the HTML output currently as this:
<a href="#">Coats</a> (12)
What I’d like to do, is a regex or operation that moves the number to inside anchor in such a way:
<a href="#">Coats<span>12</span></a>
The output is ALWAYS in same format I posted. I simply looking to eliminate the ( ) and wrap it in span, and put it without any space inside the HTML structure for anchor.
(DID NOT try anything because I do not know anything close, about regex)
Thank you.
With the caveat that regular expressions should not generally be used to manipulate HTML.