Help with delimited text parsing in pattern?

Rick54
Tera Expert

Hello - I am trying to parse below plain text output to various temp variables but I couldn't do it. Can someone please validate and give me the right direction?

I am trying to store variables after '=' in temp variables

 

find_real_file.png

Thanks!

7 REPLIES 7

Sudharsanan Rav
ServiceNow Employee
ServiceNow Employee

You can use regex instead

 

Thanks for the response. How exactly it can be done for more than one variable?

doug_schulze
ServiceNow Employee
ServiceNow Employee

try using '=' as your delimiter and above in the include lines add name and version.. that should get you the two you are looking for

Rick54
Tera Expert

Thanks for the reply Doug. If I do that all left side variables are being assigned to Name and right side are being assigned to version not just those specific values. But I think I can still access them by $posgres_instance[1].Name correct?