[正则表达式]

提取括号内的内容

匹配括号内的内容 
var regex1 = /((.+?))/g;   // () 小括号
var regex2 = /[(.+?)]/g;   // [] 中括号
var regex3 = /{(.+?)}/g;  // {} 花括号,大括号

原文地址:https://www.cnblogs.com/anycc/p/15017753.html