![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
05/06/2008, 02:54
|
| | Fecha de Ingreso: agosto-2004
Mensajes: 513
Antigüedad: 20 años, 5 meses Puntos: 5 | |
Respuesta: expresión regular en PHP Bueno, al final con expresiones regulares no ha sido posible.
Lo he resuelto a lo bruto, con un while y strpos.
Por si alguien lo necesita:
$first = strpos(strtolower($file), "<a");
$count = 0;
while (!($first === FALSE) && $count < 100) {
$count ++;
$next = strpos(strtolower($file), "</a");
$file = str_replace(substr($file, $first, $next - $first +4), " ", $file);
$first = strpos(strtolower($file), "<a");
} |