In this following text of html:
<p>Here are some users you mentioned:
<span class="mention-inserted">@johnsmith1</span>,
<span class="mention-inserted">@daisy_apple23</span>,
<span class="mention-inserted">@bob.erricson</span>.
//... some more text //
</p>
How do I find all the
<span class="mention-inserted">@{user}</span>
and convert them into <a></a>
tags with added classes, keeping their respective positions without removing any other text?
so
<span class="mention-inserted">@johnsmith1</span>
should simply convert to
<a class="mention-inserted active-link">@johnsmith1</a>
& so on. Is this more complex then I believe it to be? Or am I blatantly missing a simple use of regEx?