Might help to explain your problem a lot more. From what you've written I can guess that you just wish to pull out numerals from s String, which a regular expression would allow you to do
Lesson:...