Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Expression Régulière: Valider un mot de passe

 mot de passe
{filelink=13370}

<?php
   $password = "monmotdepasse";
   if (!preg_match("/^[a-zA-Z0-9]{8,16}$/", $password))
   echo "Mot de passe incorrect!";
   else
   print "Mot de passe validé"
?>

No comments yet.

Leave a Comment