why solve this with a regex? If you want to extend the logic, pick out groups at the same time fine, if the core task is "count the ':'" then a simple for loop is sufficient ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results