i need to replace only the last occurrence of anything in parenthesis using preg_replace in PHP -


i need replace occurrence of in parenthesis @ end of string nothing. dont want same happen inside string. example if have string "special (not) value (sv)" preg_replace should replace end parenthesis result should "special (not) value"

have tryed using explode function? can define pattern, , can concatenate arrays afterwards... http://php.net/manual/en/function.explode.php


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -