How to get the numbers in the text?

I am a novice, can you tell me how to do it?