I would like to accomplish some pattern matching in java with...
Regex pattern used
(?<key>[^:]+):(?<value>[^:]+)(?:,|$)
Text to parse:
a long key: with some long value, KeyA: ValueA, KeyB: ValueB, KeyC: ValueC, ValueD, ValueE, some text and https://www.example.orf, KeyF: 84,3 kg, KeyG: 34,3 x 234,3 x 54 cm
Desired result:
a long key: with some long value
KeyA: ValueA
KeyB: ValueB
KeyC: ValueC
ValueD
ValueE
some text and https://www.example.orf
KeyF: 84,3 kg
KeyG: 34,3 x 234,3 x 54 cm
the url breaks the whole thing unfortunately and i dont know how to extract those "keyless" values
thanks in advance,
fritz