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