all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Regex replace for numbers
@ 2014-10-03  0:33 Robert Thorpe
  2014-10-03  1:07 ` Marcin Borkowski
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Robert Thorpe @ 2014-10-03  0:33 UTC (permalink / raw)
  To: help-gnu-emacs

I'm not very good with Emacs regex, I need to search-and-replace on some numbers.

How can I detect unnecessary zeros at the end of a number and chop them
off?  E.g. turn 567.45000 to 567.45 without also turning 6700 to 67.

BR,
Robert Thorpe



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

end of thread, other threads:[~2014-10-03 19:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-03  0:33 Regex replace for numbers Robert Thorpe
2014-10-03  1:07 ` Marcin Borkowski
2014-10-03  1:41   ` Robert Thorpe
2014-10-03  2:45     ` Yuri Khan
2014-10-03  5:25 ` Nicolas Richard
     [not found] ` <mailman.10347.1412313926.1147.help-gnu-emacs@gnu.org>
2014-10-03 11:43   ` Udyant Wig
2014-10-03 14:40     ` Nicolas Richard
2014-10-03 19:22       ` Robert Thorpe

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.