Cita:
quiero que reemplaze la url anterior osea abc.php?id=1234 por id-1234.html$urlps2=preg_replace("/<a href=abc.php?id=(.+) style=color:#222244>(.+)<\/a>/", "<a href=id-$1.html>$2</a>", $partesx2);
alguien sabe como lo podria hacer preg_match ? tampoco me sale
Cita:
alguien sabe$partesx1 = $urlpartes[1];
preg_match("/<a href=abc.php?id=(.+) style=color:#222244>(.+)<\/a>/",$partesx1,$urlps1);
preg_match("/<a href=abc.php?id=(.+) style=color:#222244>(.+)<\/a>/",$partesx1,$urlps1);
Gracias !