unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* newb rexeg question
@ 2003-10-23 19:56 Steve Throckmorton
  2003-10-23 20:08 ` Kevin Rodgers
  2003-10-24  7:55 ` Alan Mackenzie
  0 siblings, 2 replies; 6+ messages in thread
From: Steve Throckmorton @ 2003-10-23 19:56 UTC (permalink / raw)


I know this is going to end up with me looking stupid, but why does this:

...
(re-search-forward "^[a-z]...$")
...

insist on matching the word "Abba" in this word list:

...
abates
abating
Abba
abbe
abbey
...

I would think it would find "abbe".

I'm trying to match non-capitalized, four-letter words, and this is 
ticking me off.  Please tell me what I'm missing.

Thanks,
Steve T.
Stockbridge GA

^ permalink raw reply	[flat|nested] 6+ messages in thread
* RE: newb rexeg question
@ 2003-10-23 20:25 Bingham, Jay
  0 siblings, 0 replies; 6+ messages in thread
From: Bingham, Jay @ 2003-10-23 20:25 UTC (permalink / raw)


On: Thursday, October 23, 2003 2:57 PM Steve Throckmorton wrote:

> ... why does this:
> 
> ...
> (re-search-forward "^[a-z]...$")
> ...
> 
> insist on matching the word "Abba"

Because the variable `case-fold-search' is not set to `nil'.  Read about
search and case in info.  (C-h i mem [ret] msea [ret] msea [ret])

Newbies should really make friends with the info pages.

-_
J_)
C_)ingham
.    HP - NonStop Austin Software & Services - Software Quality
Assurance
.    Austin, TX
. "Language is the apparel in which your thoughts parade in public.
.  Never clothe them in vulgar and shoddy attire."     -Dr. George W.
Crane-

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-10-24 19:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-23 19:56 newb rexeg question Steve Throckmorton
2003-10-23 20:08 ` Kevin Rodgers
2003-10-24  7:55 ` Alan Mackenzie
2003-10-24 19:19   ` David Vanderschel
2003-10-24 19:59     ` Stefan Monnier
  -- strict thread matches above, loose matches on Subject: below --
2003-10-23 20:25 Bingham, Jay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).