Ver Mensaje Individual
  #2 (permalink)  
Antiguo 03/01/2009, 14:30
Avatar de Ronruby
Ronruby
 
Fecha de Ingreso: julio-2008
Ubicación: 18°30'N, 69°59'W
Mensajes: 4.879
Antigüedad: 16 años, 8 meses
Puntos: 416
Respuesta: Chequear con regex

Es muy facil:

Código PHP:
if(preg_match('#^http://twitter\.com/([a-z\-])+/status/([\d])+$#i''http://twitter.com/adnsdandasn-dnoa/status/4113578/'))
    echo 
'si';
else
    echo 
'no'
Te recomiendo te leas este aporte:
http://www.forosdelweb.com/f18/aport...s-pcre-646110/

Última edición por Ronruby; 03/01/2009 a las 17:44