![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
18/08/2015, 14:19
|
| | Fecha de Ingreso: enero-2011
Mensajes: 47
Antigüedad: 14 años Puntos: 0 | |
Respuesta: extraer ruta con preg_match_all Muchas gracias!!!!
$fuente='<script src="archive/doc.html">';
preg_match_all('/(src)="([^"]*)"/i', $fuente, $array);
echo $array[2][1];
resultado!!
archive/doc.html |