I'm splitting a string on a regex. The resulting array contains empty strings where the regex matched. I don't want those. E.g.,
iex(1)> String.split("Hello world. How are you?", ~r/\W/)
["Hello", "world", "", "How", "are", "you", ""]
How can I split a string so it doesn't return empty strings in the list?