↧
Answer by A. El-zahaby for regex for match all tag and extract the "src"...
if you use php , try this code :$thehtml = '<p>lol </p><p><img src="data:image/png;base64,1" data-filename="LOGO80x80.png" style="width:...
View ArticleAnswer by ctwheels for regex for match all tag and extract the "src" attribute
Since you specified in the comments below your question that using regex in your case is safe...You can't put backreferences in a set. It'll interpret the characters literally (so in your case \2...
View ArticleAnswer by user9107868 for regex for match all tag and extract the "src"...
function getAllSrc(){ var arr=document.getElementsByTagName("IMG") var srcs=[] for(var i = 0; i<arr.length;i++){ srcs=srcs.concat(arr[i]) } return srcs}
View Articleregex for match all tag and extract the "src" attribute
i want, with a regex, find all img tag into html document and extract the content of the src attribute.This is my regex (see online...
View Article