Hi
    Thanks for your reply It worked.At first I tried like
 if /^(\d)(\d)$/.match(@val) ==nil   #But not worked..Anyway thanks

Sijo
-- 
Posted via http://www.ruby-forum.com/.