var str = '2013-6-7'
var re=/(\d+)(-)/gstr.replace(re,function($0,$1$2){
alert($1)})这个为什么只能输出2013,6
7输不出来呢?