ciao vorrei che si aggiungesse ai caratteri consentiti il trattino sopra e quello sotto -_

Codice PHP:
if (!preg_match("/^[a-zA-Z0-9]{0,12}$/",$_POST['user'])) { 

$errori 1