i have string like
"Node pvq01if-yyyi04030901.pv.km.com Alert : aaa@ppk Description : \neapi unreachable for 5 minutes\n Expr: sysstat_loadavg.1 UN:step=60&s=e-4min = 1\n Value: 1 = 1\n \n Link to Epic View Graph"
I want to extract some attributes values from the above string like node=pvq01if-yyyi04030901.pv.km.com Alert=aaa@ppk
format is string is predefined
please help to find a regular expression for getting alert value and node value from the string. or help me to solve this logic.
note: white spaces should be eliminated from the values
Aucun commentaire:
Enregistrer un commentaire