Something is wonky in this regex. It should still match version strings like:

```
1.0.0.dev
1.0.0.alpha.1
```

More about valid Rubygems version strings here: http://guides.rubygems.org/specification-reference/#version