php regex help needed throwing an error

Hi i have a script i am making that grabs tv channel information from api url but i have come to a problem the api outputs plain text informations like below

    BBC1 ( Now : BBC News Next : BBC News ))

all i want and need is the channels name BBC1 so i created a regex string the best i could to remove what wasnt needed the code is below

    $name = preg_replace("/\([^)]+\)/","",$html);

But the problem is it keeps throwing an error saying unexpected t verb and it also leaves ) from the end as well and that brings me to another problem to get rid of the ) at the end i use this code

    $name = str_replace(")","",$name);

with this code the ) inside “” is showing as the closing bracket for the first one in stead of the one before ;

can some one heplp me i need everything removed apart from the names before the first (


Download php.regex.help.needed.throwing.an.error.zip
Direct Link


Download


Download php.regex.help.needed.throwing.an.error.zip
Mediafire


Download


Download php.regex.help.needed.throwing.an.error.zip
Ultrafile


Download


Download php.regex.help.needed.throwing.an.error.zip
Anafile


Download


Download php.regex.help.needed.throwing.an.error.zip
Uppit


Download

Both comments and pings are currently closed.

Comments are closed.