From: kotin 76 Date: 2011-07-28T00:37:11+09:00 Subject: if condition for pattern matching 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/.