var aa="ldfjsldfj(dsfasjfj3124123)";
There is any content in the parentheses, how to match it
ringa_lee2017-07-05 10:41:41
var aa="ldfjsldfj(dsfasjfj3124123)";
var result = aa.match(/\(([^)]*)\)/);
// 此时result=["(dsfasjfj3124123)", "dsfasjfj3124123"];
if (result) {
console.log(result[1]); // "dsfasjfj3124123"
}