encode = 'aa(ddsdd)gh'
var re = /\([^\)]+\)/g;
encode = encode.match(re)[0];
encode = encode.substring(1,encode.length-1);//ddsdd