"aaabbbcccdeefff".split(/(\w)\1+/)
The output of this code is:
["", "a", "", "b", "", "c", "d", "e", "", "f", ""]
but:
"aaabbbcccdeefff".replace(/(\w)\1+/g,"")
output result is
"d"
so as I understand it, the split result should be:
[d]
What"s wrong with ?