Sorry if this question gets posted a lot. I'm unsure of the terminology,
so my searches didn't come up with anything.

I've got a block of html coming in from the database that looks like
this:


<div style="float:left; width:33%">
#{@copy_1}
</div>

<div style="float:left; width:33%">
#{@copy_2}
</div>

<div style="float:left; width:33%">
#{@copy_3}
</div>

I'd like to replace the variables with another string, which contains
just text.

What's the syntax for something like this? I got gsub! to do one
variable, but it didn't seem like it was the most efficient way to do
it. Plus, I need to do multiple ones.

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