From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Paul Cohen Newsgroups: gmane.emacs.help Subject: Newbie regexp question Date: Wed, 30 Oct 2002 15:07:21 GMT Organization: Telia Internet Sender: help-gnu-emacs-admin@gnu.org Message-ID: <3DBFF5F8.B78A64CA@enea.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035990668 16663 80.91.224.249 (30 Oct 2002 15:11:08 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 30 Oct 2002 15:11:08 +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 186uUp-0004Jd-00 for ; Wed, 30 Oct 2002 16:11:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 186uV8-00012m-00; Wed, 30 Oct 2002 10:11:22 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-stob.telia.net!telia.net!194.22.194.4.MISMATCH!masternews.telia.net.!newsb.telia.net.POSTED!not-for-mail X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-NNTP-Posting-Host: 217.209.34.169 Original-X-Complaints-To: abuse@telia.com Original-X-Trace: newsb.telia.net 1035990441 217.209.34.169 (Wed, 30 Oct 2002 16:07:21 CET) Original-NNTP-Posting-Date: Wed, 30 Oct 2002 16:07:21 CET Original-Xref: shelby.stanford.edu gnu.emacs.help:106557 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:3108 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:3108 Hi I want to do a Emacs regexp search and replace on a HTML file containing patterns like this: ... Where "..." denotes a variable number of lines of HTML text. I want to search for all occurrences of the above pattern and then remove them from the HTML file! I've tried a number of variants without any success. For example the following regexp doesn't work: \(.*\n\)* /Paul