[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
rexexp help needed
From: |
henry atting |
Subject: |
rexexp help needed |
Date: |
Fri, 26 Dec 2008 15:20:49 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
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
- rexexp help needed,
henry atting <=
Message not available
Re: rexexp help needed, Cecilio Pardo, 2008/12/27