Hello
I must remove from $list everything between ()
for example "test(random text)" should return only "test"
I was using
$list3 = preg_replace('@(\w+)@', '', $list3);
but it doesn't work if between () there are "-" or other special chars ..
How to solve the problem ?
I wish to remove also (a/b\c-te&%st) for example .
Thank you