From: Newb Newb Date: 2008-08-23T16:06:20+09:00 Subject: REGULAR EXPRESSION Newb Newb wrote: > Hi all > I am not Expert at Rails or Ruby > I have a string ..it contains text and images also.. > from that string i want to replace the All The Images Into > Empty>space..that is images Has to Be Removed. > > I tried like below > > item.description = item.description.gsub(/\<*img.*src=".*".*?\/\>/,' ') > Using This Regular Expression I can able to Reomve Only The First > Occurrences of The Images,But I Need TO Remove All Occurences Of The Images > So Any Guru Can give Me solution... -- Posted via http://www.ruby-forum.com/.