From: Daniel Finnie Date: 2006-12-08T12:46:47+09:00 Subject: Re: Need help with a regexp Why are you doing a gsub but then anchoring the Regexp to the start & ends? Use a normal sub or take out all the ^s and $s (except for the character class definitions, i.e., the ones in square brackets). Please post some sample text, not of what you would like to remove but of what you would like to remove it from. Dan rpheath wrote: > I'm trying to write a regular expression to replace a
...
> block or a

...

block with a blank (''). > I can only get the
...
to work correctly. Here's what I > have: > > text.gsub(/^
[^<]*<\/pre>$|^

(.*?)<\/p><\/blockquote>$/,'') > > Can someone help me figure out why the blockquote is still showing > up??? Thanks in advance. > > >