I am using a regular expression from although this only extracts the text inside of the brackets, I want to completely remove it:
if( preg_match( '!\(([^\)]+)\)!', $text, $match ) )
$text = $match[1];
E.g I have: my long text string (with another string)
How can I get:
$var1 = "my long text string";
$var2 = "with another string";