sampath meka

sampath meka

  • NA
  • 41
  • 12.2k

Using Regular Expression

Mar 23 2014 6:52 AM
Hello All,

I want to break the string using regular expression kindly help me


string str = "(!(2VH_AKTIVLENKUNG_UND_HSR) + !(ALLRAD) + (B47D20 + G011, B47D20 + G012, B48B20 + G011, B48B20 + G012, B57D30 + G011, B57D30 + G012, B58B30 + G011, B58B30 + G012, G011 + N63B40, G012 + N63B40, G011 + N63B44, G012 + N63B44, G012 + N74B66, G012 + XB1141))";


Expected Output:

!(2VH_AKTIVLENKUNG_UND_HSR)
!(ALLRAD)
B47D20 + G011
B47D20 + G012
B48B20 + G011
B48B20 + G012
B57D30 + G011
B57D30 + G012
B58B30 + G011
B58B30 + G012
G011 + N63B40
G012 + N63B40
G011 + N63B44
G012 + N63B44
G012 + N74B66
G012 + XB1141



Thank u plz help me







Answers (1)