js regex with string code example Example: les fonctions reguliere javascript if(! pseudo.match(/^([a-zA-Z ]+)$/)) alert('Pseudo invalide');