James Gray wrote: > On Aug 29, 2006, at 11:00 AM, James Deuchar wrote: > >> Hi, >> >> I'm trying to find an nice way of verifying that the value of a String >> object (from the RoR params) contains a positive integer value. > > str =~ /\A\+?0*[1-9]\d*\Z/ > > Hope that helps. > > James Edward Gray II Thanks James - it does indeed -- Posted via http://www.ruby-forum.com/.