Buon giorno a tutti, qualcuno sa dirmi perché eseguendo questa espressione:

codice:
var stringa = '<input type="button" value="#Prova" idtag="11" style="color: rgb(51, 156, 203); background-color: white; border: 0px; padding: 0px;">';
var espressione = /<input type="button" value="([#a-zA-Z0-9]+?)" idtag="([0-9]+?)" style="color: rgb\(51, 156, 203\); background-color: white; border: 0px; padding: 0px;">/gi;
	
if(espressione.test(stringa))
 {
  setting_tag = espressione.exec(stringa);
  alert(setting_tag);
 }
Il metodo test ritorna true ma il metodo exec ritorna null?