How do I retrieve all src value using regex in php?
jQuery Method
var Scripts = []; $('head script').each(function(){ if($(this).attr('type') == 'text/javascript' && $(this).attr('src')){ Scripts.push($(this).attr('src')); } }); console.log(Scripts)