From: greg Date: 2006-12-08T14:24:00+09:00 Subject: Re: Need help with a regexp You are missing the 'm' flag which will allow '.' to match new lines pre_match = /
.*?<\pre>/m
block_match = /
.*?:

.*?<\/p>.*?<\/blockquote>/m