From: Xavier Noria Date: 2010-01-20T00:52:24+09:00 Subject: Re: string to int On Tue, Jan 19, 2010 at 3:37 PM, Rick DeNatale wrote: > def safe_string_to_int(string) >     if /^\d+$/.match(string) \A and \z would be better surely for the same price.