var pattern = /<(img)(.?)(/>|></img>|>)/g,
PlainTxt = ue.getPlainTxt();
var match1 = PlainTxt.match(pattern);
if(match1==null){
img = "nopic";
}else{
var pattern2 = /(src)=("|')(.?)("|')/g,
PlainTxt2 = match1[0];
var match2 = PlainTxt2.match(pattern2);
if(match2==null){
img = "nopic";
网友评论