From: Hans Mackowiak Date: 2011-07-28T00:57:09+09:00 Subject: Re: if condition for pattern matching you need "" or '' around your string string1 = "/dev/sda1" or string1 = '/dev/sda1' -- Posted via http://www.ruby-forum.com/.