Still naive, if only... str.scan(/\d+/)[0...-1]