From: yermej Date: 2008-07-02T14:07:07+09:00 Subject: Re: RegEx On Jul 1, 5:18 pm, Justin To wrote: > version: > 1. abc 600-qwer > 2. abc600-qwer > 3. abc 6.0.0-pedfs > 4. abc 6.12.23-45 > 5. abc 5.0.6.0 > etc... > > I want to be able to identify which version is version 6, version 5, > etc.. > > I'm not sure if a regex is the best way. I need to be able to say that > #1-4 are version 6 and #5 is version 5. But I need to be able to > identify versions 1-8. Also, what if I need to identify, specifically, > version 5.5 and 5.6? > > Thanks > -- > Posted viahttp://www.ruby-forum.com/. str = ['abc 600-qwer', 'abc600-qwer', 'abc 6.0.0-pedfs', 'ab