Thread: regex (yuck)
View Single Post
  #9 (permalink)  
Old 08-08-2006, 09:46 PM
John's Avatar   
John John is offline
Co-Administrator
 
Join Date: Jul 2006
Age: 20
Posts: 3,568
Last Blog:
Tidy up your HTML
Credits: 0
Rep Power: 20
John has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond repute
Send a message via AIM to John Send a message via MSN to John
Default Update

ok the code below works perfect, but it needs to be cleaned up a bit (dont laugh at my regex abilities )

PHP Code:
<?php
$url 
"https://www.novaworld.com/Players/Stats.aspx?id=8542545489&p=616065";

//Gets the content of the submited URL;
$content file_get_contents($url); 

//Strips the tags of the $content;
$strip strip_tags($content);
preg_match('#Down






    
    


    (.*?)
    Rank#'
$strip$matches);
$str $matches[1];
echo 
$str;
?>
Reply With Quote