[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: regexp help
From: |
HS |
Subject: |
Re: regexp help |
Date: |
2 Feb 2007 19:37:37 -0800 |
User-agent: |
G2/1.0 |
On 2 fev, 20:20, gokha...@gmail.com wrote:
> 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.
There's no \d construct....
Can't you record a keyboard macro ? it might be easier!
- regexp help, gokhalen, 2007/02/02
- Re: regexp help,
HS <=
- Re: regexp help, Matthew Flaschen, 2007/02/02
- Message not available
- Message not available