Axel --
...and then Axel Beckert said...
% Hi;
%
% David Thorburn-Gundlach wrote:
% > % > How would I make a case-sensitive search for an all lower-case string?
%
% Just tested it with mutt 0.95i (with rx) and mutt 0.95.4i (with regex)
% regarding the subject line. Both use a rule, which worked in most of
% the 19.3x GNU Emacses: If the regexp conatins no upper case letter,
% it's treated as case-insensitive, but if it contains at least one
Yep.
% upper case letter it's treated as case-sensitive. This rule is quite
% useful in most times, but surely not always, e.g. in your case it is
% not.
Right.
%
% (BTW: After testing this, I've done a little RTFM and found exactly
% this rule in section 4.1 of the mutt manual: "The search is case
% sensitive if the pattern contains at least one upper case letter, and
% case insensitive otherwise." :-)
Yeah; I saw that, too, and started scratching my head to figure out
how to avoid upper-case letters.
%
% I suggest therefore the following: Use "X?funny" as regexp. There is
% one upper case letter in and it matches all messages containing
% "funny" and no others... It worked fine with my 2 versions of mutt.
Sounds great. Um, how does it work? I see the upper case letter,
that makes it case-sensitive, and then the ? says "zero or one".
Theoretically, then, I'd find both "funny" and "Xfunny", right?
That's cool enough, since I can probably find a single upper-case
letter that I could avoid -- or could even write something like
'(ABCX)?funny'
to increast my odds of a "clean" match...
Do I have it right?
%
% Regards, Axel
% --
% Axel Beckert - [EMAIL PROTECTED] - http://w5.cs.uni-sb.de/~abe/
% Dept. of Computer Science, University of Saarland (Germany)
% Artificial Intelligence Laboratory (AI Lab), Prof. Dr. W. Wahlster;
% WWW-Administrator IBFI Schloss Dagstuhl; Students Representative
:-D
--
David Thorburn-Gundlach * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED] Helping out at Pfizer
http://www.poboxes.com/davidtg/
Note: If poboxes.com gives you fits, try sector13.org in its place. *sigh*
PGP signature