Hello All,
I want to break the string by using the Regular Expression:
String1:"((G011, (G012 + !(111_HIGH_SECURITY))) + !(ALLRAD) + (B48B20, XB1141) + OL + (PLUGIN_HYBRID))"
Output:
(G011 + !(ALLRAD) + B48B20 + OL + (PLUGIN_HYBRID))
(G011 + !(ALLRAD) + XB1141+ OL + (PLUGIN_HYBRID))
(G012 + !(111_HIGH_SECURITY)+ !(ALLRAD) + B48B20 + OL + (PLUGIN_HYBRID))
(G012 + !(111_HIGH_SECURITY)+ !(ALLRAD) + XB1141+ OL + (PLUGIN_HYBRID))
String2:"((G011, (G012 + !(111_HIGH_SECURITY))) + (KEIN_HYBRID))"
Output:
(G011 + (KEIN_HYBRID))
(G011 + !(111_HIGH_SECURITY) + (KEIN_HYBRID))
One Regular Expression should server for both the strings.
Thanks in Advance
Loading

VulpesRank #55 · 29.2K reputationPosted May 5, 2014, 3:15 AM EDT
The output now is:
VulpesRank #55 · 29.2K reputationPosted May 2, 2014, 7:12 AM EDT
For String 2 I've assumed that the second output string should read:
jithendra pasala53 reputationPosted May 4, 2014, 11:33 PM EDT
The given solution of regular expression not working for
((G011, (G012 + !(111_HIGH_SECURITY))) + ALLRAD + (N63B40, N63B44) + OL)
that should work for above string also
pls help
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts