unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* problem re-search with the \| op.
@ 2008-01-10 20:44 rtra
  2008-01-11  3:35 ` Barry Margolin
  0 siblings, 1 reply; 2+ messages in thread
From: rtra @ 2008-01-10 20:44 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I'm having problems searching for a regular expression matching two
alternatives, A or B.
A = "#title "
B = "\* [A-Z][a-z]+.*"
and allow '.' (dot) to be string concatenation

(re-search-backward A 1 t) matches the string A as I intended, and
(re-search-backward B 1 t) also matches B as intended, but
(re-search-backward A."\|".B 1 t) does not matches A or B as I thought
it should

I'm using GNU Emacs 22.1.1, and testing this with a file like
----8<----
#title test
* tset

<point is here>
----8<----

Thank you for you time.
(I've wasted some in the manual, but I'm not figuring this out...)

Rui Almeida

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

end of thread, other threads:[~2008-01-11  3:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-10 20:44 problem re-search with the \| op rtra
2008-01-11  3:35 ` Barry Margolin

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