Can't get preg_match working for web scrapping

Plellagillgab

New Member
I have some code here, but I can't get it working. Could someone help me?\[code\]$file_string = file_get_contents('URL');$search = "<tr><th> <a href=''>Data_name</a></th><td>(.*)</td></tr>";preg_match($search, $file_string, $title);$title_out = $title[1];echo $title_out;\[/code\]
 
Back
Top