Hi, I have a test in which the log file is being generated in this format:
TimeStamp #Latency #MethodName #StatusMessage #Input #Output
04:02:2010:09:48:07:708#275#applyQoSFeature#Success#{ParameterSetList={Duration=5}, qoSFeatureIdentifier=Downstream QoS_
200k, serviceIdentifier=BBEU000000000000000000000000000032814043, serviceProviderIdentifier=O/M77778888, TransactionIden
tifier=TRID_000001}#{parameterSetList={DurationAllocated=5,OvershootFlag=false}, sessionIdentifier=010213075125%BBEU0000
00000000000000000000000032814043@O/M77778888#Q7$12652768847332399293-SRB_2, transactionIdentifier=E7C73288-04E1-1C7B-E47
B-53DFEC6D1DCF}
As you can see there are new lines in between. I want to store the value of the parameters sessionIdentifier and transactionIdentifier in a variable.
I am able to store the value of sessionIdentifier using the regex: sessionIdentifier=(.*),
but when I use the regex: transactionIdentifier=(.*)} to store the value of transactionIdentifier it gives an error in execution that <none> is stored in the variable.
I am not very good in using regular expression so can someone please correct me if I am using the wrong one.