2006/6/1, Ilyas <iiskakov / gmail.com>:
> How I can to check float value, with regular expression. Also need check
> a integer with float values.

The easiest check is to use Float and Integer:

>> Float("foo") rescue false
=> false
>> Float("1") rescue false
=> 1.0
>> Integer("10") rescue false
=> 10
>> Integer("10.4") rescue false
=> false

Kind regards

robert

-- 
Have a look: http://www.flickr.com/photos/fussel-foto/