I have the following code in html:
<a title="Link 01" href="http://www.meusite.com.br/?id=121451781">Link 01</a>
<a title="Link 10" href="http://www.meusite.com.br/?id=13456712">Link 10</a>
I need a replace that starts in ?id=
and ends in ">
.
the replace would look something like this:
$path = str_replace("1","*",$texto);
But if I just leave replace, it will also replace the name "Link 01" leaving as "Link 0 *" and I do not want this, I need the substitution only in "1" of the id. Example of how I want it to stay:
<a title="Link 01" href="http://www.meusite.com.br/?id=*2*45*78*">Link 01</a>
Thanks in advance.