🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: bit.listserv.gnuemacs
1 messages
1 total messages Started by Dieter Woerz Wed, 29 Sep 1993 04:06
Problem while doing query-replace-regexp
#1
Author: Dieter Woerz
Date: Wed, 29 Sep 1993 04:06
28 lines
2192 bytes
I am annoyed by a feature of emacs in query-replace and
query-replace-regexp. When I execute the command
	query-replace-regexp \(.*\) abc/def/\1/xyz
I get different results depending on the input.
For the following inputs I get the associated outputs, but I would
like to get the string in brackets

1. uvw -> abc/def/uvw/xyz (abc/def/uvw/xyz)
2. Uvw -> Abc/Def/Uvw/Xyz (abc/def/Uvw/xyz)
3. UVW -> ABC/DEF/UVW/XYZ (abc/def/UVW/xyz)

As you see, in case 1 I get what I want, but in the cases 2 and 3 I
don't. The thing isn't even that predictable. If the source string
(uvw) contains a non-alphanumerical character the behaviour of the
replace changes to 1.

I would like to know, if there is some variable to set, so that I can
always get the strings in the brackets.

Thanks in advance

Dieter

--
Zahnaerztliches Rechenzentrum Dr. Gueldener GmbH
Dieter Woerz     	INTERNET:       woerz@gueldener.de       
Postfach 101545       	UUCP:           unido!zahn!woerz         
D-70014 Stuttgart	BITNET/EARN:    woerz%gueldener.de@unido.bitnet
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads