I have a string that contains some random text plus 0 or more span tags.
Like this.
Hey <span class="OverLayStyle" style="background-color:#d8dfea">@Peter</span> and <span class="OverLayStyle" style="background-color:#d8dfea">@cara</span>
Do you like <span class="OverLayStyle" style="background-color:#d8dfea">#Facebook</span> or <span class="OverLayStyle" style="background-color:#d8dfea">#Google</span> ?
I would like to pull out the span tag
that contains a @ and replace it with an a tag
like this:
<span class="OverLayStyle" style="background-color:#d8dfea">@Peter</span>
TO:
<a href="" class="OverLayStyle" style="background-color:#d8dfea">@Peter</a>
Is it possible to do something like this?