sampath meka

sampath meka

  • NA
  • 94
  • 31.2k

Regex1

Nov 18 2014 6:03 AM
Hello All,
I want to break the below string by using the Regular Expression:

String:"(HECK_ANTRIEB + (((G011 + N63B44 + OL + ECE + !(212_AUSST_BREMSANL_LAENDER)), ((G012 + !(119_ELEKTRIK_ZUSATZMOD_HIGH_SECURITY)) + N63B44 + OL + ECE + !(212_AUSST_BREMSANL_LAENDER)), ((G012 + !(119_ELEKTRIK_ZUSATZMOD_HIGH_SECURITY)) + N74B66 + UL + ECE + !(212_AUSST_BREMSANL_LAENDER)), ((G012 + !(119_ELEKTRIK_ZUSATZMOD_HIGH_SECURITY)) + N74B66 + UL + ECE + 212_AUSST_BREMSANL_LAENDER + !(8AA_CHINA)), ((G012 + !(119_ELEKTRIK_ZUSATZMOD_HIGH_SECURITY)) + N74B66 + UL + ECE + 8AA_CHINA), ((G012 + !(119_ELEKTRIK_ZUSATZMOD_HIGH_SECURITY)) + N74B66 + UL + US)))), (ALLRAD + (((G011 + B48B20 + OL + ECE + 212_AUSST_BREMSANL_LAENDER), (G011 + B47D20 + TL + ECE + !(802_KOREA)), (G011 + B47D20 + TL + ECE + 802_KOREA), (G011 + HECK_ANTRIEB + B57D30 + OL + ECE + 212_AUSST_BREMSANL_LAENDER), (G011 + ALLRAD + B57D30 + OL + ECE + 212_AUSST_BREMSANL_LAENDER + !(802_KOREA)), (G011 + ALLRAD + B57D30 + OL + ECE + 802_KOREA), ((G012 + !(119_ELEKTRIK_ZUSATZMOD_HIGH_SECURITY)) + B48B20 + OL + ECE + 212_AUSST_BREMSANL_LAENDER + !(8AA_CHINA)), ((G012 + !(119_ELEKTRIK_ZUSATZMOD_HIGH_SECURITY)) + B47D20 + TL + ECE + !(802_KOREA)), ((G012 + !(119_ELEKTRIK_ZUSATZMOD_HIGH_SECURITY)) + B47D20 + TL + ECE + 802_KOREA), ((G012 + !(119_ELEKTRIK_ZUSATZMOD_HIGH_SECURITY)) + HECK_ANTRIEB + B57D30 + OL + ECE + 212_AUSST_BREMSANL_LAENDER), ((G012 + !(119_ELEKTRIK_ZUSATZMOD_HIGH_SECURITY)) + ALLRAD + B57D30 + OL + ECE + 212_AUSST_BREMSANL_LAENDER + !(802_KOREA)), ((G012 + !(119_ELEKTRIK_ZUSATZMOD_HIGH_SECURITY)) + ALLRAD + B57D30 + OL + ECE + 802_KOREA), ((G012 + !(119_ELEKTRIK_ZUSATZMOD_HIGH_SECURITY)) + B57D30 + OL + US))))"

Output:
1. (HECK_ANTRIEB + (((G011 + N63B44 + OL + ECE + !(212_AUSST_BREMSANL_LAENDER)), ((G012 + !(119_ELEKTRIK_ZUSATZMOD_HIGH_SECURITY)) + N63B44 + OL + ECE + !(212_AUSST_BREMSANL_LAENDER)), ((G012 + !(119_ELEKTRIK_ZUSATZMOD_HIGH_SECURITY)) + N74B66 + UL + ECE + !(212_AUSST_BREMSANL_LAENDER)), ((G012 + !(119_ELEKTRIK_ZUSATZMOD_HIGH_SECURITY)) + N74B66 + UL + ECE + 212_AUSST_BREMSANL_LAENDER + !(8AA_CHINA)), ((G012 + !(119_ELEKTRIK_ZUSATZMOD_HIGH_SECURITY)) + N74B66 + UL + ECE + 8AA_CHINA), ((G012 + !(119_ELEKTRIK_ZUSATZMOD_HIGH_SECURITY)) + N74B66 + UL + US))))
2. (ALLRAD + (((G011 + B48B20 + OL + ECE + 212_AUSST_BREMSANL_LAENDER), (G011 + B47D20 + TL + ECE + !(802_KOREA)), (G011 + B47D20 + TL + ECE + 802_KOREA), (G011 + HECK_ANTRIEB + B57D30 + OL + ECE + 212_AUSST_BREMSANL_LAENDER), (G011 + ALLRAD + B57D30 + OL + ECE + 212_AUSST_BREMSANL_LAENDER + !(802_KOREA)), (G011 + ALLRAD + B57D30 + OL + ECE + 802_KOREA), ((G012 + !(119_ELEKTRIK_ZUSATZMOD_HIGH_SECURITY)) + B48B20 + OL + ECE + 212_AUSST_BREMSANL_LAENDER + !(8AA_CHINA)), ((G012 + !(119_ELEKTRIK_ZUSATZMOD_HIGH_SECURITY)) + B47D20 + TL + ECE + !(802_KOREA)), ((G012 + !(119_ELEKTRIK_ZUSATZMOD_HIGH_SECURITY)) + B47D20 + TL + ECE + 802_KOREA), ((G012 + !(119_ELEKTRIK_ZUSATZMOD_HIGH_SECURITY)) + HECK_ANTRIEB + B57D30 + OL + ECE + 212_AUSST_BREMSANL_LAENDER), ((G012 + !(119_ELEKTRIK_ZUSATZMOD_HIGH_SECURITY)) + ALLRAD + B57D30 + OL + ECE + 212_AUSST_BREMSANL_LAENDER + !(802_KOREA)), ((G012 + !(119_ELEKTRIK_ZUSATZMOD_HIGH_SECURITY)) + ALLRAD + B57D30 + OL + ECE + 802_KOREA), ((G012 + !(119_ELEKTRIK_ZUSATZMOD_HIGH_SECURITY)) + B57D30 + OL + US))))

Thanks in Advance

Answers (2)