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