You can either the easier solution provided by @nadim.warsi (which is what I opted for), or you can use a RegEx expression to pull it with the ‘Match’ expression… but you would need to first format your output to a single line string for easier processing.
Remove line breaks with:
yourString.Replace(Environment.NewLine,":") - The “:” will be what goes in place of the line breaks in the new string, which makes it easier to pull out values with RegEx as each variable will broken up by a “:” character. You can use any character in place.
Next, use the Match regex function System.Text.RegularExpression.RegEx.Match(input,pattern).Value to get the variables. Here is the first expression to get the Client ID:
System.Text.RegularExpression.RegEx.Match(yourString,"(?<=Client ID: )(.*)(?=:Client Name)").Value
To explain, the positive lookbehind “?<=” expression tells the expression to locate the Client ID: section and look at what is behind it. We’ll grab all the text using “(.*)” which grabs any characters behind it (ignoring line breaks), but we need to ensure we don’t take all the rest of the string so we’ll need to cut it off at a point. We can do that with the positive lookahead “?=” expression which will match anything in the group before it without taking the text contained in lookahead.
You can then apply this same strategy to the others to get the variables as needed. This is just an alternative method to the one outlined above which uses an array to grab each individual variable.