From: Lucky Nl Date: 2010-08-03T19:04:20+09:00 Subject: Re: How to remove leading   from string Oh k basically result not modified then returns nil right? its very helpful your regular expression But i need one mroe help str = "

pargraph1 pargraph1   

pargraph2 pargraph2 pargraph2   

pargraph3 hello3 hell13   

pargraph4 hello3 hell14   

  

" In the above str

  

is empty line inmy point of view. so the enetered text in editor is upto str = "

pargraph1 pargraph1   

pargraph2 pargraph2 pargraph2   

pargraph3 hello3 hell13   

pargraph4 hello4 hell14   

i want to remove spaces wt the endof the lastpargrpah also.Not in the 1 &2&3rd pargrpahs Want result is str = "

pargraph1 pargraph1   

pargraph2 pargraph2 pargraph2   

pargraph3 hello3 hell13   

pargraph4 hello4 hell14

-- Posted via http://www.ruby-forum.com/.