简单:JS正则问题!
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";}