So I have a variable text where I got this input (String) from my users. I want to split the String character by character. I tried using the split method with blank divisor but it isn't working. Below is a snippet of the code.
textArray = text.split("", true);
I tried "\0" as divisor but the engine say that it's an invalid escape sequence.
Any work around?
Edit: It seem that I need to use RegEx with "(?!^)". I am still trying to figure out how to use it. Any help will be appreciated.