There is such a piece of HTML, which is quite irregular. If you want to extract the link address and link name, how do you do it?
The following is the quoted content:
$str = 'Song List a> Chinese Golden Melody Chart | • Light music | ';
以下为引用的内容: $pat = '/(.*?)/i'; preg_match_all($pat, $str, $m); |
The following is the quoted content: $pat = '/(.*?)/i'; preg_match_all($pat, $str, $m); |
以下为引用的内容: print_r($m[2]); print_r($m[4]); |
The following is the quoted content: print_r($m[2]) ; print_r($m[4]); |
以下为引用的内容: for($i=0;$i } |
The following is the quoted content: for($i=0;$ i
|
The following is the quoted content: Array ( [0] => http://list.mp3.baidu.com/song/A.htm?top8 [1] => http://list.mp3.baidu.com/list/bangping.html [2] => qingyinyue. html?top19 ) Array ( [0] => Song List [1] => Chinese Golden Song Chart [2] => Light Music) |