I have a string like this:
*********** name: NOTINSTATE timestamp: 2015-09-16T12:33:01.253Z
MyKeyValue1 = myData MyKeyValue2 = 0.0 based on filter: no Filter
********************************
In this String i have the KeyValuePairs:
"name" NOTINSTATE
"timestamp" 2015-09-16T12:33:01.253Z
"MyKeyValue1" myData
"MyKeyValue2" 0.0
"based on filter" no Filter
I was thinking about something like Freemarker in reverse way but i don't think that Freemarker others this functionality.
I know i could do it on a dirty way and work with pattern and split the String but there must be a better way to do this.
Any suggestions or frameworks which would be useful? My searchString itself will not be changed in the future. It will be always the same.