正则表达式—Vue截取字符串中截取img标签的src图片地址

        const text = <img src="xxx.xxx.xxx...;
        const RegEx = /(?<=(img src="))[^"]*?(?=")/gims;
        this.pictureUrlList = text.match(RegEx);

  

posted @ 2021-11-22 14:24  假装空白  阅读(1279)  评论(0)    收藏  举报