var reg = new RegExp(text + ":[\\s\\S]*?;", "g");var t=text.replace(/\//g, '') /\// 匹配 /
var reg = /"dataIndex"\s*:\s*"\w+"/g; 匹配 "dataIndex:foo"