RegexBuddy is a great tool for working with these regular expressions.
This regular expression will match a sequence of lines that are identical. The replace pattern will replace all those matched lines with just the first instance of that line (i.e., it will remove duplicates).
(?<LINE>((?!\r|\n).)+)(\r\n\k<LINE>)+(?=\r\n|$)
${LINE}
No beer and no TV make Homer something something
No beer and no TV make Homer something
This regular expression will match rich text containing exactly one paragraph. Multiple paragraph tags will not match. Useful if you want to allow the content editor to use a rich text editor, but want to restrict them to a single paragraph.
^<p>((?!<p>).)+$
<p>I am <strong>a single</strong> paragraph.</p>