[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How do I search for 9001 or 4001
From: |
Barry Margolin |
Subject: |
Re: How do I search for 9001 or 4001 |
Date: |
Wed, 22 Aug 2012 22:06:52 -0400 |
User-agent: |
MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) |
In article <ur4qy8vj3.fsf@verizon.net>, Joe Fineman <joe_f@verizon.net>
wrote:
> 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".
Then what are \( and \)?
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***