Actually, it could be even more concise:

```ruby
gwdev = output.scan(/^0\.0\.0\.0.*(\S+)$/).first
```