I am trying to split a string, but keep all separators bundled together in a separate list.
s = "This is a test for \n a string"
should results in
a = ["This", "is", "a", "test", "for", "a", "string"]
b = [" ", " ", " ", " ", " \n ", " "]
Any idea on how to handle that?