From: kotin 76 Date: 2011-07-27T22:58:37+09:00 Subject: Re: String manuplation example Hi josh, i did not get the how i get logic for my requirement from rubular. regards kotin Josh Cheek wrote in post #1013351: > On Wed, Jul 27, 2011 at 8:26 AM, kotin 76 wrote: > >> string = "45225016 3702464 39225208 9% /dev/sdaERT7890 " >> Regards >> >> 1. i dont know how many character will come after /dev like it may come >> > in the filenames, it won't work (hence the reason I think it's stupid >> > string.each_line do |line| >> > # >> "45225016 3702464 39225208 9% /\n" >> >> -- >> Posted via http://www.ruby-forum.com/. >> >> > > Here, I put your strings into rubular http://rubular.com/r/dbuEen46gb > > How about trying to create a regex that matches your data and then > posting > it here for feedback. -- Posted via http://www.ruby-forum.com/.