From: Chirag Shah Date: 2011-07-27T22:09:48+09:00 Subject: Re: String manuplation example Then you can go with only regular expression given by Hans i.e st = "/dev/sda1256 45225016 3702464 39225208 9% /" st.match(/[\/\w]+/)[0] this will give you your search -- Posted via http://www.ruby-forum.com/.