Extract image src from a string

前端 未结 5 521
遇见更好的自我
遇见更好的自我 2020-11-30 06:02

I\'m trying to match all the images elements as strings,

This is my regex:

html.match(/]+src=\"http([^\">]+)/g);

Th

5条回答
  •  渐次进展
    2020-11-30 06:33

    var myRegex = /]+src="(http:\/\/[^">]+)"/g;
    var test = '';
    myRegex.exec(test);
    

提交回复
热议问题