I just copied the javascript code of the Google Browser Button then i adapted it to be usefull with the Google Dictionary.
Here's it:
GOOGLE DICTIONARY
;)
miércoles, 1 de abril de 2009
martes, 3 de marzo de 2009
Expresión regular para validar un link de youtube
Con esta expresión regular, podremos facilmente validar si la url apunta realmente a un video de youtube válido o no.
function youtubeValidateLink($str)
{
if (!eregi("youtube\.(.*)v\=[^&]+", $str) ) return FALSE;
return TRUE;
}
Suscribirse a:
Comentarios (Atom)