' Collection of code snippets by Arne Vajhøj 
' (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
s = "12a-4560 789"
s2 = ""
for i = 1 to len(s)
   if instr("0123456789", mid(s,i,1)) > 0 then
       s2 = s2 & mid(s,i,1)
   end if
next
msgbox s2
