From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anselm Helbig Newsgroups: gmane.emacs.help Subject: Re: Searching in occur for ^(?:M|C) Date: Thu, 24 Nov 2005 19:45:17 +0100 Message-ID: <871x15ubpe.wl@nospam.anselm.chemie.fu-berlin.de> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1132858061 20571 80.91.229.2 (24 Nov 2005 18:47:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 24 Nov 2005 18:47:41 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 24 19:47:40 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EfM6x-00079P-1M for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Nov 2005 19:46:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EfM6w-0003lB-3W for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Nov 2005 13:46:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EfM6l-0003l6-Dn for help-gnu-emacs@gnu.org; Thu, 24 Nov 2005 13:46:11 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EfM6k-0003ku-MB for help-gnu-emacs@gnu.org; Thu, 24 Nov 2005 13:46:11 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EfM6k-0003kr-Hv for help-gnu-emacs@gnu.org; Thu, 24 Nov 2005 13:46:10 -0500 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1EfM6k-0000iy-Du for help-gnu-emacs@gnu.org; Thu, 24 Nov 2005 13:46:10 -0500 Original-Received: (qmail invoked by alias); 24 Nov 2005 18:46:07 -0000 Original-Received: from dialin-145-254-070-074.pools.arcor-ip.net (EHLO azrael) [145.254.70.74] by mail.gmx.net (mp004) with SMTP; 24 Nov 2005 19:46:07 +0100 X-Authenticated: #5704990 Original-Received: from azrael ([127.0.0.1] helo=azrael.lygophilia.de) by azrael with esmtp (Exim 3.36 #1 (Debian)) id 1EfM5t-0000q2-00 for ; Thu, 24 Nov 2005 19:45:17 +0100 Original-To: "help-gnu-emacs@gnu.org" Original-Newsgroups: gnu.emacs.help In-Reply-To: Mail-Followup-To: anselm@chemie.fu-berlin.de User-Agent: Wanderlust/2.11.30 (Wonderwall) Emacs/21.4 Mule/5.0 (SAKAKI) X-Drdoom-Fodder: root passwd satan security CERT X-Y-GMX-Trusted: 0 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:31327 Archived-At: hi lennart, what do you mean, you have some sourcecode where this regex occurs, and you want to find the matching lines? then you'd have to use sth like this: \^(\?:M|C) if you want to match lines that begin with M or C, then it'd have to be: ^\(?:M\|C\) HTH, regards, anselm