iRoot121 Posted August 2, 2014 Share Posted August 2, 2014 Hi, I'm trying to make a program that filters data out of a website. Now I've got a problem. For example, I've this line: <td class="maintxt" width="200"><a href="profile.php?x=Stranger">Stranger</a></td><td class="maintxt" width="200">Godfather (96.76%)</td><td class="maintxt" width="200"><i><a href="clanprofile.php?x=Ettertjes">Ettertjes</a></i></td> Form this line I want to set the word "Stranger" in a variable, and do the same for the word "Godfather". What is the best method to do this? Thanks in advance, iRoot121 Quote Link to comment Share on other sites More sharing options...
CroNiX Posted August 2, 2014 Share Posted August 2, 2014 Not really understanding your question. Could you explain a bit more? Quote Link to comment Share on other sites More sharing options...
nik_jain Posted August 3, 2014 Share Posted August 3, 2014 You are looking for regex / preg_match . Alternatively you can use the library Querypath , but querypath may be an overkill for this. 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.