Below are three strings. Each string has some characters inside the brackets. I want to save those characters which are inside the brackets in some other variables. Can somebody suggest the possible ways to do this?
String name_and_code1 = "MountainBlues(MB)";
String name_and_code2 = "Rock(RoRo)Roll";
String name_and_code3 = "(TFT)TitForTat";