Possible Duplicate:
Remove Text Between Parentheses PHP
I have a query string such as
string="this is my string attributeone(values) attributetwo(values,valuestwo) more string"
How can I write a PHP regex to retrieve "this is my string more string"
There could be different number of attributes at any place in the sentence and different number of values within them.
or
This assumes that your attribute names only consist of lower-case letters, and that your values can never contain the
)character. Also note that an attribute at the very end of your string might leave you with a trailing space.