I need to replace the flowing:
<a href="#">something</a>
withthis:
(start-a)something(end-a)
I do not master the regex well, so the regex I have its just to change all tags completely.
string.replace(/(<([^>]+)>)/ig,"(start-a)");
Whats should I change in my regex for just replacing the first tag, and the other change to replace the ending tag?
Thanks.