I have an output of a command that basically lists a bunch of key/value pairs inside of it. The output is in no obvious format, therefore I think regex will be the best approach.
Output: http://pastebin.com/Hfu4nP3M
Basically, I need to store the key/value pairs (comma seperated) from lines 21-30 and store them in a map.
Is it possible to do this using regex?
Thanks.
I am not sure if that is what you want, but since you said that you need to store the key/value pairs (comma seperated) from lines 21-30 which are
I assumed that you want to read values after
memorythat are stored inside[...].To do this you can use something like
Output