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

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

Re: How do I search for 9001 or 4001


From: Joe Fineman
Subject: Re: How do I search for 9001 or 4001
Date: Wed, 22 Aug 2012 17:30:08 -0400
User-agent: Gnus/5.101 (Gnus v5.10.10) Emacs/22.3 (windows-nt)

Barry Margolin <barmar@alum.mit.edu> writes:

> 4001\|9001 will work. Emacs uses basic regular expressions, which
> means that the extended regexp operators have to be escaped. This
> means you have to use \(, \|, and \) instead of (, |, and ).

Live & learn.  I never thought of \| as an escaped |.  I thought it
was an approximation to the logicians' $\vee$ for "or".
-- 
---  Joe Fineman    joe_f@verizon.net

||:  I wish I had never been born -- but who has such luck?  Not  :||
||:  one in ten thousand.                                         :||


reply via email to

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