Есть выражение:
| Код | preg_match_all("<a href=['|\"](.*?)['|\"].*?>(.*?)</a>", $buf, $match, PREG_PATTERN_ORDER);
|
и такого типа текст:
| Код | ... <a href='http://100-free-mobile-ringtones-t.cerl.info/'>100 free mobile ringtones t</a></li><li><a href='http://panasonic-cell-phone-ringtone.cerl.info/'>panasonic cell phone ringtone</a></li><li><a href='http://free-cell-phone-background-ringtone.cerl.info/'>free cell phone background ringtone</a></li><li><a href='http://cell-phone-ringtone-background.cerl.info/'>cell phone ringtone background</a></li><li><a href='http://buy-ringtone-with-my-cell-phone.cerl.info/'>buy ringtone with my cell phone</a></li><li><a href='http://free-ringtones-qwest-cell-phone.cerl.info/'>free ringtones qwest cell phone</a></li><li><a href='http://funny-cell-phone-ringtones.cerl.info/'>funny cell phone ringtones</a></li><li><a href='http://cell-maker-phone-ringtones.cerl.info/'>cell maker phone ringtones</a></li><li><a href='http://free-ringtones-wallpaper-sprint-cell-phone.cerl.info/'>free ringtones wallpaper sprint cell phone</a> ...
|
нужно выдернуть линки и описание линков. линки получается выдернуть таким выражением: preg_match_all("<a href=['|\"](.*?)['|\"].*?>", $buf, $matches); а почему не работает первое выражение, объясните плз |