This kind of thing is MUCH easier in XSLT 2.0. But there's a trick you can use with the translate function:
Code:
translate($x, translate($x, '0123456789', ''), '')
removes all characters from $x that are not digits. (Study it carefully to understand why).
Of course this isn't the whole answer because it also loses the separators. So change it to replace the non-digits with a space, and then delete redundant spaces:
Code:
normalize-space(translate($x, translate($x, '0123456789', ''), ' '))
and then you can use the str:tokenize recursive template from the EXSLT site to split the sequence of numbers and process them individually.