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

sql server - python to mssql encoding problem -

java - SNMP4J General Variable Binding Error -

c# - BasicHttpBinding equivalent CustomBinding using WCF Client and PHP WebService -