help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Advanced query-replace-regexp in code


From: Nordlöw
Subject: Advanced query-replace-regexp in code
Date: Wed, 27 May 2009 07:03:02 -0700 (PDT)
User-agent: G2/1.0

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.

Thanks in advance,
Per Nordlöw


reply via email to

[Prev in Thread] Current Thread [Next in Thread]