I have a string with this pattern: repeat of a char in `[' ', '.', "#"]` plus space.

For example: `# . #`.

I want to split this string based on space separator (getting `['#', '.', ' ', '#']` but the problem is that space is one of characters itself, so `split(" ")` doesn't work.

How can I do this?