I have String in below form :
{1:F01ANZBSGSXAXXX166753}{2:O1030921091130DEUTSGSGXXXX28705821270911234}{3:{103:MEP}{113:NORQ}{108:10ROTRM911250002}}
I have to create a regular expression in order to get following substring from the above string :
- {1:F01ANZBSGSXAXXX166753}
- {2:O1030921091130DEUTSGSGXXXX28705821270911234}
- {3:{103:MEP}{113:NORQ}{108:10ROTRM911250002}}
- {103:MEP}
- {113:NORQ}
- {108:10ROTRM911250002}
The pattern it follows is : Pattern = {key:value} where value can contain nested Pattern
I tried to form one : ({\d*:[\s\S][^}]*}) But this one fails in case of substring 3 i.e. in case of nested expression.