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 Link to comment https://forums.phpfreaks.com/topic/290238-data-filter/ 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? Link to comment https://forums.phpfreaks.com/topic/290238-data-filter/#findComment-1486701 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. Link to comment https://forums.phpfreaks.com/topic/290238-data-filter/#findComment-1486717 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.