The string is:
var string = `1. A<br>2. B<br>3. C`;
Now splitting by regex:
var results = string.split(/\d+\./);
Results in:
(4) ['', ' A<br>', ' B<br>', ' C']
What I actually expected:
(3) [' A<br>', ' B<br>', ' C']
What is the problem here? Is the first result always empty in Javascript when using a split with Regex?