str = 'abcd<img src="images/01.gif">asdasd<img src="images/02.gif">fsfasd';
str=str.replace(/<\s?img[^>]*>/gi, '【图片】');

披着凉皮的狼
5 声望0 粉丝