all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* query-replace-regexp number number+1
@ 2006-04-11 16:04 rturrado
  2006-04-11 16:14 ` David Kastrup
  0 siblings, 1 reply; 9+ messages in thread
From: rturrado @ 2006-04-11 16:04 UTC (permalink / raw)


Hi,

I wonder if you can do that easily in emacs: to search for a number,
let's say \([0-9]+\), and replace it with its successor, let's say
\1+1. The query I've just written would replace 25 with 25+1. What I
want is to evaluate 25+1 and replace 25 with 26.

Thanks, Roberto.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2006-04-12 16:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-11 16:04 query-replace-regexp number number+1 rturrado
2006-04-11 16:14 ` David Kastrup
2006-04-11 18:36   ` rturrado
2006-04-11 19:05     ` David Kastrup
2006-04-12  5:46       ` B. T. Raven
2006-04-12  8:22         ` Thien-Thi Nguyen
2006-04-12  8:47         ` David Kastrup
2006-04-12 16:12       ` rturrado
2006-04-12 14:52     ` Giorgos Keramidas

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.