consider using this?

```ruby
line.split(/[^\d\.]+/)
```