unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).