Hi,
2007/3/5, Ronald J Kimball <[EMAIL PROTECTED]>:
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+
I was about to reply with something like ^(.+\r)\1+ which also seems to work. Todd, could you explain the syntax (?s) in your expression? I don't know that one, what does it mean? Thanks! Manuel
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]>
-- ------------------------------------------------------------------ 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]>
