From: Wayne Vucenic Date: 2008-06-20T07:30:26+09:00 Subject: Re: RegEx Hi Justin, /(1?\d)?\d(\.\d\d?)?/ should be a good first approximation to what you're looking for. I say "first approximation" because it will also match '100.99.' Hope this helps! Wayne ---- Wayne Vucenic No Bugs Software Agile Ruby and C# Contract Programming in Silicon Valley on Vista and OS X On Thu, Jun 19, 2008 at 3:12 PM, Justin To wrote: > I'm stuck trying to write a regular expression for a percentage: > > Examples of what I'm trying to match: > > 1.1, 1.12, 12, 12.1 and 12.12 > > 0.00 <= float <= 100.00 > > > Thanks! > -- > Posted via http://www.ruby-forum.com/. > >