unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* regexp problems the evil \[
@ 2017-03-23 21:57 Uwe Brauer
  2017-03-23 22:05 ` Stefan Monnier
  0 siblings, 1 reply; 8+ messages in thread
From: Uwe Brauer @ 2017-03-23 21:57 UTC (permalink / raw)
  To: help-gnu-emacs

Hi

The following drives me crazy

  (query-replace "\\[" "\\begin{displaymath}\n" nil)

Replaces
\[

by
\begin{displaymath}

But 

  (query-replace-regexp "\\[\\([^}]+\\)\\]" "@\\1" nil))


Does not replace 

\[eq:testpandoc:1\] 

By @eq:testpandoc:1

What do I miss?

Thanks

Uwe Brauer




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

end of thread, other threads:[~2017-03-24 17:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-23 21:57 regexp problems the evil \[ Uwe Brauer
2017-03-23 22:05 ` Stefan Monnier
2017-03-23 22:11   ` Uwe Brauer
2017-03-23 23:38     ` Aurélien Aptel
2017-03-24  0:38       ` hector
2017-03-24 17:07         ` Uwe Brauer
2017-03-24 17:07       ` Uwe Brauer
2017-03-24  2:27     ` Stefan Monnier

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