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

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

Regex replace for numbers


From: Robert Thorpe
Subject: Regex replace for numbers
Date: Fri, 03 Oct 2014 01:33:58 +0100

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



reply via email to

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