From: rpheath Date: 2006-12-08T12:55:05+09:00 Subject: Re: Need help with a regexp Thanks for the reply. I'm relatively new to regular expressions, and misinterpretted the ^s and $s. I was thinking they were for that specific check, so it was either the first string "|" (or) the second string. Here's sample text that would be passed into it. -----------------------

This is the first sentence. Now I'll post a code snippet:

def strip_blocks(text)
  text.gsub([regex],'')
end

This is another sentence before the block quote.

This is a quote

This is one more sentence

---------------------- What I would like to have left is this: ----------------------

This is the first sentence. Now I'll post a code snippet:

This is another sentence before the block quote.

This is one more sentence

---------------------- Hopefully that helps. Sorry the question is not organized and kind of basic, but I'm new to this. Thanks again for any help.