I have a string containing many new line and spaces. I need to split it into fixed length sub strings. E.g
a = \"This is some\\nText\\nThis is some text\" <
"This is some\nText\nThis is some text".scan(/.{1,17}/m) # => ["This is some\nText", "\nThis is some tex", "t"]