4
Answers

Regular Expression

sampath meka

sampath meka

10y
798
1
Hello All,
 
              Plz Help me i need a regular expression which matches the exact braces and removes unnecessary.
string str14 = "((B48B20, XB1141) + PLUGIN_HYBRID + ECE))))))))";
String str15= "((((((((((((((B48B20, XB1141) + PLUGIN_HYBRID + ECE)";
 
 
 
Expected output is :
 
str14 = ((B48B20, XB1141) + PLUGIN_HYBRID + ECE)
str15 = ((B48B20, XB1141) + PLUGIN_HYBRID + ECE)
 
 
Plz help me
 
Thank u
 
Answers (4)