From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Herb Martin" Newsgroups: gmane.emacs.help Subject: Regex search and replace End Of line Date: Sat, 30 Aug 2003 17:32:07 GMT Organization: Road Runner - Texas Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1062264708 27478 80.91.224.253 (30 Aug 2003 17:31:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 30 Aug 2003 17:31:48 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 30 19:31:46 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19t9Zi-00032P-00 for ; Sat, 30 Aug 2003 19:31:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 19t9ZN-0004Eh-Nu for geh-help-gnu-emacs@m.gmane.org; Sat, 30 Aug 2003 13:31:25 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!cyclone.bc.net!newshub.sdsu.edu!elnk-nf2-pas!elnk-pas-nf1!newsfeed.earthlink.net!newsfeed2.easynews.com!newsfeed1.easynews.com!easynews.com!easynews!news-west.rr.com!news.rr.com!cyclone.austin.rr.com!twister.austin.rr.com.POSTED!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.3790.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.3790.0 Original-NNTP-Posting-Host: 66.68.35.132 Original-X-Complaints-To: abuse@rr.com Original-X-Trace: twister.austin.rr.com 1062264727 66.68.35.132 (Sat, 30 Aug 2003 12:32:07 CDT) Original-NNTP-Posting-Date: Sat, 30 Aug 2003 12:32:07 CDT Original-Xref: shelby.stanford.edu gnu.emacs.help:116283 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:12201 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:12201 I know this must be easy but have yet to find it in help: Goal: Search for pattern at end of line and remove the pattern INCLUDING the line termination. (Tried using several of the replace-regex functions unsuccessfully.) example-------------------------------------------------------- test text etc test text = some stuff test text etc test text = some stuff test text etc test text = some stuff -------------------result--------------------------------------- test text etc test text some stuff test text etc test text some stuff test text etc test text some stuff ---------------------------------------------------------------- FYI, it was mangled by email encoding. -- Herb Martin