From: rtra <ruitra@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: problem re-search with the \| op.
Date: Thu, 10 Jan 2008 12:44:19 -0800 (PST) [thread overview]
Message-ID: <ce71df65-e69f-415b-8d7a-721782e4445f@d70g2000hsb.googlegroups.com> (raw)
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
next reply other threads:[~2008-01-10 20:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-10 20:44 rtra [this message]
2008-01-11 3:35 ` problem re-search with the \| op Barry Margolin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ce71df65-e69f-415b-8d7a-721782e4445f@d70g2000hsb.googlegroups.com \
--to=ruitra@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).