How to split a string using Reg on the symbol in the first occurrences?

Hello. You need to split on the': 'character, but only the first occurrences.
str = 'kgh55:51gagh:62hs';
str.split(#something here#) // ['kgh55','51gagh:62hs'] is a need
// /^[^:]*:/ perhaps because of this, something to sculpt
March 19th 20 at 09:03
1 answer
March 19th 20 at 09:05
let result = str.match(/(.*?):(.*)/).slice(1);
let result = (([r, ...o]) => [r, o.join(':')])(str.split(':'));

Find more questions by tags Regular expressionsJavaScript