I am trying to split a string using regex. For example:
12 13: 14: 15 => One-12, Two-13 , Three-14: 15
i am trying to use the following regex:
^(?P< one>.*)\\s(?P< two>.*):\\s(?P< three>.*)$
So as I see it, "one" should be the value before first "space"(\s) and then until next colon(:) the value should be "two" and everything after that should be "three".
But the output I get is: One-12 13:, Two-14, Three-15
Note: This is Golang type of regex but I guess this is a general Regex problem. Kindly help me out with this one.