`String#split` can accept a regex.

```ruby
line.gsub(/[|\-+]/, "").strip.split(' ')

# is equivalent to

line.split(/[^\d\.]+/)
```