twistedm1nd
Freshman
- Joined
- Feb 1, 2005
- Messages
- 30
I have a string which has to be grouped using regular expressions
The sample string is
\{Voltage\}{VoltageValue, Max\{Value\},5,5}\{Voltage\}\{Pressure\}{PressureValue,12345}\{Pressure\}
The output should be
Group 1 : {VoltageValue, Max\{Value\},5,5}
Group 2 : {PressureValue,12345}
Basically should ignore "\{", "\}" and group it based on '{' and '}'
Can Somebody help me in formulating the regular expression?
Thanks and regards
The sample string is
\{Voltage\}{VoltageValue, Max\{Value\},5,5}\{Voltage\}\{Pressure\}{PressureValue,12345}\{Pressure\}
The output should be
Group 1 : {VoltageValue, Max\{Value\},5,5}
Group 2 : {PressureValue,12345}
Basically should ignore "\{", "\}" and group it based on '{' and '}'
Can Somebody help me in formulating the regular expression?
Thanks and regards