I'm struggling to understand PHP preg_replace and wondered if you could offer any guidance on how to work out how to keep the word within the brackets but remove everything else from this string:
Events (Road)
So it would return:
Road
I'm keen to learn so don't just need the answer but need to understand how it's possible.
I know how to remove the words within the brackets (and the brackets) with:
trim(preg_replace('/\s*\([^)]*\)/', '', 'Events (Road)')
Cheers, R

(). rest he want to remove.