REGULAR EXPRESSION HELP

N

Newb Newb

Hi all
I am Trying To sort Out This Proble for the past 4 Hours..But
couldn't Find Any Solutions 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...
 
M

Matt Harrison

Newb said:
Hi all
I am Trying To sort Out This Proble for the past 4 Hours..But
couldn't Find Any Solutions 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...

Someone has already posted a possible solution in your last thread (less
than 20 minutes before this email). I'm afraid repeating the question
ad-nauseum won't get you help any faster.

Matt
 
N

Newb Newb

Matt said:
Someone has already posted a possible solution in your last thread (less
than 20 minutes before this email). I'm afraid repeating the question
ad-nauseum won't get you help any faster.

Matt

No I wrogly posted
Sorry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top