sampath meka

sampath meka

  • NA
  • 41
  • 12.2k

Regular Expression

Feb 26 2014 11:15 PM
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)