From: sto.mar@... Date: 2012-07-13T05:30:49+09:00 Subject: Re: how to check string is numeric or not Am 12.07.2012 21:46, schrieb Brian Candler: > If you just want to allow digits and nothing else, use a regexp: > /\A\d+\z/ =~ o or /\A\d+\z/ === o which returns true or false (instead of 0 or nil) --