On 7/9/07 Google Kreme wrote: >On 8-Jul-2007, at 13:07, Bruce Van Allen wrote: >> Find: >> (<div id="footer">)(?s).+?(</div>) >> >> Replace: >> \01*newStuff*\02 > >Thsi will fail in this case > ><div id="footer"> > <div id="footer_inc"> > [Stuff 1] > </div> > [Stuff 2] ></div> > >Only everything through Stuff 1's closing div will be replaced.
Yes. My post answered a specific question about how to generalize the sub-expression (.+?|\r). I used the exact example posed by the questioner. This question was raised before someone asked about nested <div> elements. Too bad you didn't get the thread in sequence. BTW, what's your contribution to the nested <div> question? Best, - Bruce __bruce__van_allen__santa_cruz__ca__ -- ------------------------------------------------------------------ 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]>
