Thread:Project:Support desk/Reading numbers from titles/reply (2)

That is not entirely true Ciencia. Kiril, would the number ever be something like "456B" and have a non-numeric number in it? If not, you can do the whole thing with just StringFunctions and the included ParserFunctions. You can use the explode function as Ciencia has said, and then you can test if the result is a number with something like  Now, the offset is the hard part, I'm assuming that you don't know where in the string the number would be, and you will likely need something like the loops extension to be able to cycle through all of the parts of the word to find it. If the number does have a non-numeric character directly attached to it, then you may need to use ReGex to find it. As for your second question. If the magnitude declaring word (such as minor) will always be the last word, you can pull that using  If it is not always the last word, then you will likely need some kind of looping functionality for that as well. I have some examples of templates where I manipulate strings in this way, and would be happy to let you look at them for reference or even help you build your template. Check out Template:Scase on my home wiki then let me know if you need help. (Note: the loops extension requires the variables extension for this functionality as well.)