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

Expression Régulière: Vérifier la longuer d’un mot de passe

 mot de passe
{filelink=13369}

<html>
<head>
<title>Expression régulière</title>
</head>
<body>
<?php
$password = "bac200";
if (! preg_match ("/[[:alnum:]]{8,10}/", $password))
     print "Mot de passe trop court.";
 else
   print "Mot de passe validé";
?>

</body>
</html>

No comments yet.

Leave a Comment