all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: gokhalen@gmail.com
To: help-gnu-emacs@gnu.org
Subject: regexp help
Date: 2 Feb 2007 15:20:44 -0800	[thread overview]
Message-ID: <1170458444.534992.259290@a75g2000cwd.googlegroups.com> (raw)

Hi,

I needed to replace lines matching the following pattern

"hello      123456123456"

with

"hello      123456 123456"

I used

M-x replace-regexp RET hello      ...... RET \&                      /
* NOTE: a white space follows the \&  */

To do this.

I was wondering how I would do this with the \d construct. That is how
would I do this along the lines of

M-x replace-regexp RET hello     \(......\)\1 RET hello      \1    /*
NOTE: a white space follows the \1    */


Thanks,

  -Nachiket.

             reply	other threads:[~2007-02-02 23:20 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-02 23:20 gokhalen [this message]
2007-02-03  3:37 ` regexp help HS
2007-02-03  4:27 ` Matthew Flaschen
2007-02-03  4:31   ` Matthew Flaschen
     [not found] ` <mailman.3926.1170476834.2155.help-gnu-emacs@gnu.org>
2007-02-03 20:31   ` M G Berberich
2007-02-03 22:18   ` Pascal Bourguignon
  -- strict thread matches above, loose matches on Subject: below --
2008-04-23 14:34 Neal Becker
     [not found] <mailman.10741.1208961303.18990.help-gnu-emacs@gnu.org>
2008-04-23 15:59 ` Johan Bockgård
2008-04-23 16:04 ` tyler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1170458444.534992.259290@a75g2000cwd.googlegroups.com \
    --to=gokhalen@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.