home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.programmer
- Path: sparky!uunet!ftpbox!mothost!merlin.dev.cdx.mot.com!fendahl.dev.cdx.mot.com!mcook
- From: mcook@fendahl.dev.cdx.mot.com (Michael Cook)
- Subject: Re: FLEX question
- Message-ID: <mcook.722107942@fendahl.dev.cdx.mot.com>
- Sender: news@merlin.dev.cdx.mot.com (USENET News System)
- Nntp-Posting-Host: fendahl.dev.cdx.mot.com
- Organization: Motorola Codex, Canton, Massachusetts
- References: <1992Nov16.171445.26227@tc.cornell.edu> <1992Nov16.185206.28741@organpipe.uug.arizona.edu>
- Date: Wed, 18 Nov 1992 17:32:22 GMT
- Lines: 25
-
- dave@cs.arizona.edu (Dave Schaumann) writes:
-
- >In article <1992Nov16.171445.26227@tc.cornell.edu>, elan@tasha (Elan Feingold) writes:
- >>How does one match things regardless of case? i.e If I want to match
- >>the keyword COOKIE, and I don't care what combination of upper and lower
- >>letters the person used...
- >>
- >>Anything but
- >>
- >>COOKIE CreateCookie();
- >>cOOKIE CreateCookie();
-
- >There are two approaches you can take:
-
- >1: Brute force
-
- ...
-
- >2: 2-level recognition
-
- ...
-
- 3: Use the -i option, which makes the whole scanner case-insensitive.
-
- Michael.
-