KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I need a tokenizer that given a string with arbitrary white-space among words will create an array of words without empty sub-strings. For example, given a string: " I dont know what you mean by glory Alice said." I use: str2.split(" ") This also returns empty sub-strings: ["", "I", "dont", "know", "what", "you", "mean", "by", "glory", "", "Alice", "said."] How to filter out empty strings from an array?
Tags (comma-separated)
Save Edits
Cancel