in reply to simple question
Have a read about the /g modifier in regular expressions: it lets you apply a regex more than one time to the same string. Now you can, in a loop, collect all of the character-strings which match “one or more not-a-digit” and concatenate them into a new string.