Ask HN: How do you split strings (to get keywords)? First trial, one splits on whitespace, but this sucks on interpunction and special characters. Second trial, you use a alpha-numeric whitelist and split on anything else, but what about umlauts? What about hebrew or cyrillic? Third trial: split on characters < 32, whitespace and interpunction characters; this works somehow but is ugly. What would you do to get keywords from a string? |