For example I have some random string:
str = \"26723462345\"
And I want to split it in 2 parts after 6-th char. How to do this correctly?>
This should do it
[str[0..5], str[6..-1]]
or
[str.slice(0..5), str.slice(6..-1)]
Really should check out http://corelib.rubyonrails.org/classes/String.html