At 15.39 +1100 2008-02-08, David Nicholls wrote:
>Hopefully a simple question.
>
>I have a file of mixed text including formatted HTML (it's actually the 
>contents of a mailbox), and I'd like to search for multi-line blocks of text 
>between <html> and </html>
>
>But I can't work out how to use a multi-line flag in the search term.

<html>(?s).*?</html> should do it.

(?) tells . to match linebreaks as well.

--
     Johan Sölve    [FSA Member, Lasso Partner]
     Web Application/Lasso/FileMaker Developer
     MONTANIA SOFTWARE & SOLUTIONS
http://www.montania.se   mailto:[EMAIL PROTECTED]
 (spam-safe email address, replace '-' with 'a')

--
------------------------------------------------------------------
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]>

Reply via email to