How can i do this in java :
given a string, for each text in parenthesis, if it contains "blabla" then remove all text in these parenthesis including parenthesis themselves
example :
some string (some text) (blabla foo bar) => some string (some text)
some string (some text) (blabla) => some string (some text)
some string (ex ex) => unchanged (because words in parenthesis doesn't contain "blabla")
thanks.