unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* end-of-line $ in multiline regexp replace
@ 2003-10-31  0:22 Leo
  2003-10-31  8:04 ` Alan Mackenzie
  2003-10-31 16:50 ` Edward Dodge
  0 siblings, 2 replies; 3+ messages in thread
From: Leo @ 2003-10-31  0:22 UTC (permalink / raw)


hi there

want to replace a multiline regexp by an one-line replacement. (in fact i
just want to delete the line with the regexp.)

so, at first i tried:
        (query-replace-regexp ".*bytes.*$[ctrl-q][ctrl-j]" "" nil nil nil)
which did not find any line. :-(

then i just tried the same without the end-of-line "$":
        (query-replace-regexp ".*bytes.*[ctrl-q][ctrl-j]" "" nil nil nil)
and that worked.

i don't understand, why? the first regexp ".*bytes.*$[ctrl-q][ctrl-j]" seems
to me even >>more valid<< then the second one.

any explanations?

tanks and cheers, leo

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

end of thread, other threads:[~2003-10-31 16:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-31  0:22 end-of-line $ in multiline regexp replace Leo
2003-10-31  8:04 ` Alan Mackenzie
2003-10-31 16:50 ` Edward Dodge

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