Question: How do I turn a repeat number such as:

```
999117777774422111

```

Create output: //

```
 999, 11, 777777, 44, 22, 111

```

I basically want to separate the value when the digits change from the [i]th place.

Answer: 
You could use a regular expression like: `/(\d)\1*/g`.
`(\d)` means match any digit, `\1*` means match and of the initially matched digit.

```js
// Example:
'999117777774422111'.match(/([0-9])\1*/g)

 // Output:
 // ["999", "11", "777777", "44", "22", "111"]

 console.log('999117777774422111'.match(/([0-9])\1*/g));
```
try this:

```js
let num='999117777774422111';
let result=num.match(/(\d)\1*/g);
console.log(result);
```