Hi All, i have below program ############################### string1 = /dev/sda1 if string1 =~ /\/dev\/ then puts pass end ############################### my aim is if dev find in that string it should enter into conditon and should print pass. but i getting error. can anyone suggest the logic for this. i would appreciate any replys Regards kotin -- Posted via http://www.ruby-forum.com/.