help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Searching in occur for ^(?:M|C)


From: Anselm Helbig
Subject: Re: Searching in occur for ^(?:M|C)
Date: Thu, 24 Nov 2005 19:45:17 +0100
User-agent: Wanderlust/2.11.30 (Wonderwall) Emacs/21.4 Mule/5.0 (SAKAKI)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]