How to to create a key/value map from a string in java
===

I have a text like

"SimpleKey1:word1. SimpleKey2: word word word, word word. word word. CompoundKey3 / CompoundKey3: word word word, word. Key3: word. SimpleKey4: word words, words word-word (word 18 word 100 ).  CompoundKey4 / CompoundKey4: word word."

I need to parse that string in order obtain a key/value map like:


SimpleKey1:word1. 
SimpleKey2: word word word, word word. word word. 
CompoundKey3 / CompoundKey3: word word word, word. 
SimpleKey4: word words, words word-word (word 18 word 100 ).  
CompoundKey4 / CompoundKey4: word word.


Note that the key can contains slash character (/) and the values can contain special characters.


thanks.


