webtuto Posted February 17, 2010 Share Posted February 17, 2010 i want to use REGEX to take the lyrics from this page http://www.lyrics.com/dont-walk-away-lyrics-miley-cyrus.html , just lyrics , i made many tries but they dont take the whole lyrics :s thanks Quote Link to comment Share on other sites More sharing options...
sader Posted February 17, 2010 Share Posted February 17, 2010 Here you go content thief if (preg_match('/<h1.*?>(.+?)<\/h1>.*<div id="lyrics" class="SCREENONLY"><br \/>(.+?)<br \/>---<br \/>/sim', $str, $regs)) { $title = $regs[1]; $lyrics = $regs[2]; } Quote Link to comment Share on other sites More sharing options...
webtuto Posted February 18, 2010 Author Share Posted February 18, 2010 thanks man ^^ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.