I've tried to extract numbers, letters and punctuations etc, from strings but I've never succeeded. For example, how would you 'extract' the words/numbers in; text<space>text<space>number or number<punctuation>number and so on. Can you use strtok() to do that? I don't have any test code, sorry, and I don't even know how to approach this. I looked in the FAQ, but there's only examples created in C++, which I don't know. A push in the right direction would be appreciated.