正则匹配file_get_contents
用file_get_contents过来后的内容为
- HTML code
<!---ecms Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->........<span class="music-icon-hook { 'musicIcon': { id: '7313936' , type:'song', iconStr:' play add collect songword download' } }">........
我想取得id 正则表达式怎么写比较好 望大家不吝赐教
——解决方案——–本@文来源[email protected]搞@^&代*@码网(搞代gaodaima码
————
直接写就是拉。
preg_match(“/id: ‘(\d+)’/”,$str,$m);
echo $m[1];
——解决方案——————–
截取截取