`split` accepts a regular expression as it's splitting pattern. You could split on non-numeric characters like this:

```ruby
parse_empties(line).split(/[^d]+/).map(&:to_i)
```