From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tak Kunihiro Newsgroups: gmane.emacs.help Subject: Re: regular expression Date: Tue, 01 Jul 2014 08:14:46 +0900 (JST) Message-ID: <20140701.081446.496778909.tak.kunihiro@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1404173973 30618 80.91.229.3 (1 Jul 2014 00:19:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Jul 2014 00:19:33 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: renato.pontefice@gmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 01 02:19:26 2014 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 1X1ln9-0002dz-AU for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Jul 2014 02:19:23 +0200 Original-Received: from localhost ([::1]:37643 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1ln8-0002PD-Ek for geh-help-gnu-emacs@m.gmane.org; Mon, 30 Jun 2014 20:19:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55560) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1kmu-0002IL-Aw for help-gnu-emacs@gnu.org; Mon, 30 Jun 2014 19:15:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X1kmk-0005dq-Pt for help-gnu-emacs@gnu.org; Mon, 30 Jun 2014 19:15:04 -0400 Original-Received: from mail-pd0-x22e.google.com ([2607:f8b0:400e:c02::22e]:37247) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1kmk-0005dK-EA for help-gnu-emacs@gnu.org; Mon, 30 Jun 2014 19:14:54 -0400 Original-Received: by mail-pd0-f174.google.com with SMTP id y10so8979662pdj.19 for ; Mon, 30 Jun 2014 16:14:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:message-id:to:cc:subject:from:mime-version:content-type :content-transfer-encoding; bh=NtDsvZ4GDAVRwE1Wf0TD2389BUXd+XnrBP8orDD/qpM=; b=gQ0Eq1gxn6kMZTqmeHLJT/3arsis+FEQbtdnFf71M3q481d8lld5jWl/t4ki+vn8ZD y88V46z1uZYDf6+91auZ9cIeRp4FPf8Zsu0LrTi9kXHF0tsPuH2n7wda5yL+iUevXPVS PU73Zha+aArTHk7jDwP604XJ2k9l0kGh5uYy8N/6q7H8jbSuxwNnPjNMsl9wOeOpzr0X 7rlkYrz/9Ws02gZnQtQrefRRpkYsPyXanzxq0PHlIAHAsr9Xbx06QvAR7PD+WUYo04i+ VZzg5fj3n9zrVnB2x7MX4mLnTkjwiLZeOy/kHuG6scP9yoy6evgYC0sOow4WSZUktiNN Fy+A== X-Received: by 10.66.228.37 with SMTP id sf5mr56025933pac.19.1404170093273; Mon, 30 Jun 2014 16:14:53 -0700 (PDT) Original-Received: from localhost (dspin2.misasa.okayama-u.ac.jp. [150.46.48.104]) by mx.google.com with ESMTPSA id g6sm106396475pat.2.2014.06.30.16.14.50 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 30 Jun 2014 16:14:52 -0700 (PDT) X-Mailer: Mew version 6.5 on Emacs 24.3 / Mule 6.0 (HANACHIRUSATO) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c02::22e 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:98471 Archived-At: > 40 STREET DW... > > I want to made substitution like this: > > 40#STREEDW... > > can someone help me to build this expression? Use `re-builder' and `query-replace-regexp'. Play on (re-builder) with following setup, then copy regexp that is inside of ". Call (query-replace-regexp) for substitution. (setq reb-re-syntax 'string)