good point, but I'm not going to start using regexes again here.

Since this regex also not handles colons in values I'm not going to use it. The longer we keep using regexes for this stuff, the more edge cases we are going to have.

If we want to have some kind of serious parser here, we must drop regexes.