[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Advanced query-replace-regexp in code
From: |
David Kastrup |
Subject: |
Re: Advanced query-replace-regexp in code |
Date: |
Sun, 02 Aug 2009 18:19:32 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
Nordlöw <per.nordlow@gmail.com> writes:
> I can't get the following example to work programmatically.
>
> M-x replace-regexp
> Replace regexp: \(\w+\)
> Replace regexp with: \,(capitalize \1)
>
> Is this only possible in interactive query-replace?
> If so should I use a combination of while(), looking-at(), re-search-
> forward(), replace-match(), match-string() etc.
Do it interactively, then use
C-x ESC ESC
in order to figure out how to this non-interactively.
--
David Kastrup
- Re: Advanced query-replace-regexp in code,
David Kastrup <=