I have a string which is split twice in array. Here is an example:
Obj1:Val1|Obj2:Val2|Obj3:Val3
Please help me with the regular expression to fetch the array of first string:
Obj1
Obj2
Obj3
And then another regex to fetch
Val1
Val2
Val3
I do not want to iterate. I want the result from regex in one go.