日期:2014-05-16 浏览次数:20390 次
var str = "<iMg SRC=\"HTTP://localhost/uploadfiles/2014/0115/20140115143844880.jpg\" border=\"0\">ASDADFALDKFALDADtTFF等 得不容易<img border=0 src=\"HTTP://localhost/uploadfiles/2014/0115/201401151.jpg\">"
var re = /<img(.+?)src=""*([^\s]+?)""*(\s
------解决方案--------------------
>)/ig;
var src = []
while (m = re.exec(str)) {
src.push(m[2]);
}
alert(src)