I have a text file that has the pattern as below..I would like to parse the values for each " An instance of Alert" and assign the values to the variables number,type,source etc..... What is the best option to accomplish this
Output:An instance of Alert
number=2
type=Server
source=ARRAY.R800.56794
severity=4
component=DKC Environment
description=Moderate error reported for DKC Environment.
actionToTake=Contact your service representative.
data=The component is not fully functional.
timeOfAlert=2018/05/26 04:52:17
An instance of Alert
number=1
type=Server
source=ARRAY.R800.57457
severity=4
component=DKC Environment
description=Moderate error reported for DKC Environment.
actionToTake=Contact your service representative.
data=The component is not fully functional.
timeOfAlert=2018/05/26 04:07:42