[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: regular expression
From: |
F . Xavier Noria |
Subject: |
Re: regular expression |
Date: |
Fri, 31 Aug 2001 17:47:18 +0200 |
On Friday 31 August 2001 17:25, you wrote:
: I would like to change every 'DIGIT,DIGIT' to DIGITDIGIT
:
: I tried 'F10 s Q' and typed [0-9],[0-9] for the search expression and
: [0-9][0-9] for the replace expression. Emacs did this:
You need to capture the digits to be able to refer to them
later in the replacement string:
M-x replace-regexp RET \([0-9]\),\([0-9]\) RET \1\2
-- fxn
- regular expression, Rodrigo Alexandre Ribeiro Canellas, 2001/08/31
- Re: regular expression,
F . Xavier Noria <=