I have a search string that will have at the end a special format included between ( brackets).
eg. string here (123)
I am looking for a way to clean the ( and ) plus the numbers included in the brackets.
I think preg_replace() is best for this but I am lost at regular expressions.
anybody has any ideas?
eg. string here (123)
I am looking for a way to clean the ( and ) plus the numbers included in the brackets.
I think preg_replace() is best for this but I am lost at regular expressions.
anybody has any ideas?