let str = '<img style="20px;height: 20px;" src="imgaddress.png" alt="">平安'
let reg =/<img.*?src=[\"|\']?(.*?)[\"|\']?\s.*?>/i
let value = str.replace(reg, '')
console.log(value) // 平安
let str = '<img style="20px;height: 20px;" src="imgaddress.png" alt="">平安'
let reg =/<img.*?src=[\"|\']?(.*?)[\"|\']?\s.*?>/i
let value = str.replace(reg, '')
console.log(value) // 平安