![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
22/09/2007, 11:01
|
![Avatar de nes24](http://static.forosdelweb.com/customavatars/avatar108567_1.gif) | | | Fecha de Ingreso: julio-2005
Mensajes: 746
Antigüedad: 19 años, 6 meses Puntos: 3 | |
Verificar Url hola, quiero crear una expresion regular donde se pueda verificar si la url contiene un archivo, Para ello idee que la URL " TIENE QUE ACABAR CON 4 CARACTERES, El PRIMERO QUE NO SEA NUMERICO NI ALFABETICO (que es el . ) Y LOS TRES SIGUIENTES QUE SEAN ALFABETICOS".
$string = "archivos/carpeta1/carpeta2/carpeta3/carpeta4/1.1.2. DESARROLLO DEL TALENTO HUMANO/archivo.pdf";
$res = ereg ( "", $string);
echo $res; |