On Mon, Mar 05, 2007 at 07:02:33AM -0800, Todd Ruston wrote: > My current attempt is: > > (?s)(^.+)\1 > > but that matches consecutive characters at the beginning of lines in > addition to desired duplicate blocks. Is there a modification to this > (or another approach) that could make it only compare complete > lines? Thanks for any assistance you can offer.
Yes, you're very close. Just add a \r to force it to only match complete lines. Also, if you could have a block repeated three or more times in a row, use \1+ instead of \1. Find (?s)(^.+\r)\1+ Replace \1 Ronald -- ------------------------------------------------------------------ Have a feature request? Not sure the software's working correctly? If so, please send mail to <[EMAIL PROTECTED]>, not to the list. List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml> List archives: <http://www.listsearch.com/BBEditTalk.lasso> To unsubscribe, send mail to: <[EMAIL PROTECTED]>
