temp = 0
str = 'ACABACGTT'
str.replace(/(A|C|G|T)+/g,function(w){
    if(temp<w.length){temp = w.length}
    return '';
})
console.log(temp)
类似这样pass了