gnu.emacs.help
[Top] [All Lists]

Re: query replace regex

Subject: Re: query replace regex
From: "james"
Date: 21 Feb 2007 11:23:55 -0800
Newsgroups: gnu.emacs.help
On Feb 21, 12:58 pm, Gary Wessle <phd...@xxxxxxxxx> wrote:
> Hi
> I need to replace
> 452452451 1.4445 1.4254
> with
> 452452451 1 1
>
> so I started by search regex to find if I can get the regex correct.
> ^\\d* \\d\\.\\d* \\d\\.\\d*$
> is reporting fail as soon as I type the second "\" in the line.
>
> how can I do this task?
>
> many thanks

There is no \d in emacs regexen.  Use [0-9] instead.

_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@xxxxxxx
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

<Prev in Thread] Current Thread [Next in Thread>