How can I replace .split('') with a regex function resulting the same output
The closest I can think of is \w which selects by letter. But the issue here being, split deletes everything being selected.
eg: I have a string abcd, performing .split('') gives me ['a', 'b', 'c', 'd'] but .split(/\w/) gives me ['', '', '', '']