Thread:Project:Support desk/Reading numbers from titles

Hi. Could anybody help me how to read only numbers from titles with different parametres (e.g. the title is "1256 something" and the template should extract only "1256"; or the title is "something 358 something" and the template should extract only "358")? I tried it by using different magic words, but they appeared to be useless in this case. I'd also like to know if it's possible to create a template that will read the words from the title in a given order (e.g. the title is "Canis Minor" and the template should read only the second word, i.e. "Minor"). Thanks.