📌  相关文章
📜  javascript 获取两个括号之间的字符串 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:26.091000             🧑  作者: Mango

代码示例1
var regExp = /\(([^)]+)\)/;
var matches = regExp.exec("I expect five hundred dollars ($500).");

//matches[1] contains the value between the parentheses
console.log(matches[1]);