From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: rtra Newsgroups: gmane.emacs.help Subject: problem re-search with the \| op. Date: Thu, 10 Jan 2008 12:44:19 -0800 (PST) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1200010665 15689 80.91.229.12 (11 Jan 2008 00:17:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Jan 2008 00:17:45 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 11 01:18:07 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JD7b4-0005rs-EW for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Jan 2008 01:18:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JD7ag-0008Sr-NH for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Jan 2008 19:17:42 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!d70g2000hsb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Original-NNTP-Posting-Host: 89.180.108.207 Original-X-Trace: posting.google.com 1199997859 11881 127.0.0.1 (10 Jan 2008 20:44:19 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 10 Jan 2008 20:44:19 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d70g2000hsb.googlegroups.com; posting-host=89.180.108.207; posting-account=VcVdNAoAAACTSBbSRhmUPqr8fnz5U2pC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; pt-PT; rv:1.8.1.11) Gecko/20080107 Firefox/2.0.0.11,gzip(gfe),gzip(gfe) Original-Xref: shelby.stanford.edu gnu.emacs.help:155229 X-Mailman-Approved-At: Thu, 10 Jan 2008 19:15:59 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:50646 Archived-At: 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 ----8<---- Thank you for you time. (I've wasted some in the manual, but I'm not figuring this out...) Rui Almeida