I need to split the string "thisIs12MyString" to an array looking like [ "this", "Is", "12", "My", "String" ]
I’ve got so far as to "thisIs12MyString".split(/(?=[A-Z0-9])/) but it splits on each digit and gives the array [ "this", "Is", "1", "2", "My", "String" ]
So in words I need to split the string on upper case letter and digits that does not have an another digit in front of it.
Are you looking for this?
returns