Finding and removing brackets and the text between brackets?
Posted: Wed Feb 21, 2007 4:30 am
I am trying to strip text and brackets for strings, for example:
'Location name (MA)' should become 'Location name', I can't use a simple str_replace() as the chars between the brackets could be any combination of 1 to 3 letters in caps from A-Z, anyone know how I can do this easily?
Many thanks
'Location name (MA)' should become 'Location name', I can't use a simple str_replace() as the chars between the brackets could be any combination of 1 to 3 letters in caps from A-Z, anyone know how I can do this easily?
Many thanks