regex supprimer les doublons
var regex = new RegExp("^(?!.*?[._]{2})[a-zA-Z0-9_.]+$");
Fragile Fox
var regex = new RegExp("^(?!.*?[._]{2})[a-zA-Z0-9_.]+$");