unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* rexexp help needed
@ 2008-12-26 14:20 henry atting
  2008-12-26 14:51 ` Lennart Borgman
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: henry atting @ 2008-12-26 14:20 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I am trying to build a rexexp that does the following:
I have a text file where I want to replace

    Medicine:One:Two            €12.00

With 

    Medicine                    €12.00

Because I have more than one entry `Medicine' (and they 
differ slightly, something like `Medicine:Three:Four' and
so on) I have to do it with `quere-replace-regexp'.
With regexp-builder I found this:

    Medicine:.*[^€.0-9]

This works both in regexp-builder and a scratch buffer, but
unfortunately not in a file. If applied on a file replace-regexp
strips everything from the first `:'.


Kind regards
henry



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

end of thread, other threads:[~2008-12-26 23:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-26 14:20 rexexp help needed henry atting
2008-12-26 14:51 ` Lennart Borgman
     [not found] ` <mailman.3376.1230303090.26697.help-gnu-emacs@gnu.org>
2008-12-26 16:17   ` henry atting
2008-12-26 17:11     ` Lennart Borgman
2008-12-26 23:04       ` Thierry Volpiatto
     [not found]     ` <mailman.3380.1230311518.26697.help-gnu-emacs@gnu.org>
2008-12-26 17:46       ` henry atting
     [not found]   ` <mailman.3378.1230308108.26697.help-gnu-emacs@gnu.org>
2008-12-26 16:54     ` harven
2008-12-26 16:53 ` Cecilio Pardo

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).