Hi all,
I need to get the value Windows 7 from the below string . used something like OS[\n]+([^\n]+) , but then it captures from Value till Windows 7. Could someone please help me in capturing only windows 7?
DeviceProperties: [ [-]
{ [-]
Name: OS
Value: Windows 7
|rex "OS\s*Value:\s*(?<OS>[^\n]+)"
Should work, it extracts the value after keywords OS\s*Value: until new line
|rex "OS\s*Value:\s*(?<OS>[^\n]+)"
Should work, it extracts the value after keywords OS\s*Value: until new line