I have a string:
HLN (Formerly Headline News)
I want to remove everything inside the parens and the parens themselves, leaving only:
String foo = "bar (baz)"; String boz = foo.replaceAll("\\(.+\\)", ""); // or replaceFirst
boz is now "bar "
boz
"bar "