From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leandro Marcolino Newsgroups: gmane.emacs.help Subject: Another replace regexp with list question Date: Sun, 9 Jun 2013 18:03:35 -0700 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1370826231 3314 80.91.229.3 (10 Jun 2013 01:03:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Jun 2013 01:03:51 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 10 03:03:52 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UlqWV-0007sh-FF for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Jun 2013 03:03:51 +0200 Original-Received: from localhost ([::1]:35142 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UlqWU-0000mI-Nq for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Jun 2013 21:03:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32928) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UlqWJ-0000mC-AA for help-gnu-emacs@gnu.org; Sun, 09 Jun 2013 21:03:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UlqWG-00024L-ST for help-gnu-emacs@gnu.org; Sun, 09 Jun 2013 21:03:39 -0400 Original-Received: from mail-ea0-x22c.google.com ([2a00:1450:4013:c01::22c]:37880) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UlqWG-000248-LH for help-gnu-emacs@gnu.org; Sun, 09 Jun 2013 21:03:36 -0400 Original-Received: by mail-ea0-f172.google.com with SMTP id q10so3559364eaj.17 for ; Sun, 09 Jun 2013 18:03:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=wVQJpFmSVJoEKcORLrjCMcP5dN7UUKWE6SA/LuWRmnU=; b=ywcBnU2DHj1EC8chydPdhKZSn9m/jsCMF8xKb4PA0oZVq7XYKZnOXSaHzfNMgZMcY/ u/aTUC/mKBftQ4IB/JWnfMA9r1Erw4/inRaqAwLC4u0P2dd4Kb+wWh+ytogFsTaPL+H9 bNijtuq95wh2ODCIsu+vqwiEC+5AXQKh+eKRRCkKF6X+qXA6DVJQdTzcU0o7KgT4c5gH P5YfzNBaIMy6NG3lP8vJ2GuXWI1cofbySpqqDKXunZJTLhR3neeioKPmbv7cipDaI74u 2XthWu7NcVVKY06tY2DifEWwCuSNJgoVLDsOCQNUXpsxCwblB2XRPqxovLCnJnIf4kQR vB0w== X-Received: by 10.14.182.132 with SMTP id o4mr3272585eem.94.1370826215337; Sun, 09 Jun 2013 18:03:35 -0700 (PDT) Original-Received: by 10.14.175.2 with HTTP; Sun, 9 Jun 2013 18:03:35 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c01::22c X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:91421 Archived-At: Hello, everyone!.. This time I am trying to find occurrences of: "私私私私", but the number of 私 can change from 1 to many. And I want to replace each 私 of the list to a white space (besides removing the clause). So, if there were x "私", I need x " ". Is it possible to do this using replace-regexp?.. Of course I can't just look for "私" and replace to " ", because I have occurrences of "私" that are not inside the group "". I tried something like "\(\(私\)+\) -> \,(cond (\1 " ")))", but then I lose the information of how many "私" were there, and everything changes to a single " ".... Thanks for your help!.. :) Regards, Leandro