all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Why are RegExps never working?
@ 2007-11-11 14:06 Sven Bretfeld
  2007-11-11 14:47 ` Peter Dyballa
  2007-11-11 15:21 ` Bastien
  0 siblings, 2 replies; 28+ messages in thread
From: Sven Bretfeld @ 2007-11-11 14:06 UTC (permalink / raw)
  To: help-gnu-emacs


[-- Attachment #1.1: Type: text/plain, Size: 904 bytes --]

Hello all

I'm just a beginner in using Regexp operations. I know that Emacs
RegExps are somewhat different from those of awk etc. But I'm
using the GNU Emacs manual to look them up.

I usually need them to do some editing (isearch-forward-regexp or
query-replace-regexp) in LaTeX-files which were MS-Word files
originally. I'm using AucTeX in Emacs 22.1.50.1.

For example, I want to search every occurrence of pp. `number' (to
replace it by pp.~`number'). Instead of space, pp. can also be
followed by an end-of-line. So I think this RegExp should be correct:

pp\.[ \|$][0-9]

To my understanding, it should mean: the string pp. followed by a
group consisting of space or end-of-line followed by a number.

Alas, occurrences of pp. at the end of a line are never found. I've
also tried \n instead of $ and [ $] instead of [ \|$] -- all with the
same result.

What's my mistake?

Thanks for help

Sven

[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]

[-- Attachment #2: Type: text/plain, Size: 152 bytes --]

_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

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

end of thread, other threads:[~2007-11-16 10:17 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-11 14:06 Why are RegExps never working? Sven Bretfeld
2007-11-11 14:47 ` Peter Dyballa
2007-11-11 15:19   ` Sven Bretfeld
2007-11-11 15:52     ` Peter Dyballa
2007-11-11 23:24       ` Sven Bretfeld
2007-11-12  9:39         ` Peter Dyballa
2007-11-12  9:53           ` Sven Bretfeld
     [not found]       ` <mailman.3307.1194823515.18990.help-gnu-emacs@gnu.org>
2007-11-12  8:21         ` Harald Hanche-Olsen
2007-11-12  9:55           ` Sven Bretfeld
2007-11-12 10:15             ` Lennart Borgman (gmail)
2007-11-12 15:10               ` Drew Adams
2007-11-12 16:01                 ` Sven Bretfeld
     [not found]           ` <mailman.3326.1194861370.18990.help-gnu-emacs@gnu.org>
2007-11-12 13:04             ` Richard G Riley
2007-11-12 18:54               ` Drew Adams
2007-11-13  8:55           ` Tim X
2007-11-13 13:54             ` Richard G Riley
     [not found]     ` <mailman.3268.1194797266.18990.help-gnu-emacs@gnu.org>
2007-11-12 23:53       ` Giorgos Keramidas
2007-11-13 15:49         ` Peter Dyballa
2007-11-13 16:37           ` Giorgos Keramidas
2007-11-13 23:51             ` Sven Bretfeld
2007-11-14  9:55               ` Peter Dyballa
2007-11-14 17:52                 ` Sven Bretfeld
     [not found]             ` <mailman.3482.1194997914.18990.help-gnu-emacs@gnu.org>
2007-11-14  3:13               ` Giorgos Keramidas
2007-11-14  9:22         ` Johan Bockgård
2007-11-16  5:15           ` Tim X
2007-11-16 10:17             ` Johan Bockgård
2007-11-11 15:21 ` Bastien
2007-11-11 14:38   ` Sven Bretfeld

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.