From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: martin Newsgroups: gmane.emacs.help Subject: Re: Help with query-replace-regexp Date: Sun, 30 Jan 2005 13:16:33 +0100 Organization: none Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1107087440 16519 80.91.229.6 (30 Jan 2005 12:17:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 30 Jan 2005 12:17:20 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 30 13:17:14 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CvE0w-0007sl-00 for ; Sun, 30 Jan 2005 13:17:14 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CvEDX-0001lA-7i for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Jan 2005 07:30:16 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news1.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-X-Trace: individual.net UesSuHsxfoeD9Pg516TUygVtsBKYti3+YELjaON+s+5mbLsE0= X-Shakespeare: "Alas, poor Yorick! I knew him, Horatio; a fellow of infinite jest, of most excellent fancy." -- Hamlet, V.1.203-204 User-Agent: Emacs Gnus Cancel-Lock: sha1:GIKa8XAr9rF+vnUBz6yaoLnw45Q= Original-Xref: shelby.stanford.edu gnu.emacs.help:128248 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:23753 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:23753 "MP" == Michael Preminger writes: MP> Newsgroups: gnu.emacs.help MP> Date: Sun, 30 Jan 2005 12:47:26 +0100 MP> Organization: UNINETT MP> MP> Id like to replace a nonspace followed by a space, with the same MP> nonspace followed by a comma. MP> MP> MP> how do I express it in a query-replace-regexp command? M-: (query-replace-regexp "\\([^ ]\\) " "\\1," nil nil nil) RET MP> MP> Thanks MP> MP> Michael MP> MP> -- parozusa at web dot de