日期:2014-05-17 浏览次数:20452 次
var ooo = /(?<=<span style=").*?(?=")/gi;
var reg = /style=\s*(['\"]?)(.*?)(?=\1)/gi; var result; while ((result = reg.exec(str)) != null) { document.getElementById("result").value += result[1] + "\n"; }