From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: tennis_smith@yahoo.com (Tennis Smith) Newsgroups: gmane.emacs.help Subject: line-spanning regexp Date: 14 Jan 2003 15:59:40 -0800 Organization: http://groups.google.com/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <7f477f72.0301141559.3e01705f@posting.google.com> NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1042588774 30499 80.91.224.249 (14 Jan 2003 23:59:34 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 14 Jan 2003 23:59:34 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18Yaxw-0007vl-00 for ; Wed, 15 Jan 2003 00:59:32 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18Yays-0005zB-01 for gnu-help-gnu-emacs@m.gmane.org; Tue, 14 Jan 2003 19:00:30 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Original-NNTP-Posting-Host: 128.107.253.42 Original-X-Trace: posting.google.com 1042588780 17009 127.0.0.1 (14 Jan 2003 23:59:40 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 14 Jan 2003 23:59:40 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:108964 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:5492 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5492 Hi, How do I construct a regexp that looks for two strings that *might* span two consecutive lines? For example, I need a regexp that will find string1 and string2 and everything in between for the following scenarios: blah blah blah blah string1 blah blah string2 blah blah blah -OR- blah blah string1 blah string2 blah blah TIA, -Tennis