- Home /
how to get words of a string
How do I get specific words in a string? I can't find anything in the documentation D:
Comment
This is because it's a Regex thing. What specifically are you trying to do?
Answer by Eric5h5 · Dec 21, 2012 at 07:34 PM
var words = someString.Split(" "[0]);
Or, if using C#, you can use single quotes for the char type to avoid the [0], i.e. someString.Split(' ');
Your answer
Follow this Question
Related Questions
Split string, add action to every word 1 Answer
Remove the last word from a string 2 Answers
how to display a long string sentence by sentence instead of character by character? 1 Answer
how can i split a word to individual letters..?? 2 Answers
How do I change the logged text based on a momentary collision? 1 Answer