home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / programm / 5345 < prev    next >
Encoding:
Text File  |  1992-11-18  |  1.1 KB  |  38 lines

  1. Newsgroups: comp.unix.programmer
  2. Path: sparky!uunet!ftpbox!mothost!merlin.dev.cdx.mot.com!fendahl.dev.cdx.mot.com!mcook
  3. From: mcook@fendahl.dev.cdx.mot.com (Michael Cook)
  4. Subject: Re: FLEX question
  5. Message-ID: <mcook.722107942@fendahl.dev.cdx.mot.com>
  6. Sender: news@merlin.dev.cdx.mot.com (USENET News System)
  7. Nntp-Posting-Host: fendahl.dev.cdx.mot.com
  8. Organization: Motorola Codex, Canton, Massachusetts
  9. References: <1992Nov16.171445.26227@tc.cornell.edu> <1992Nov16.185206.28741@organpipe.uug.arizona.edu>
  10. Date: Wed, 18 Nov 1992 17:32:22 GMT
  11. Lines: 25
  12.  
  13. dave@cs.arizona.edu (Dave Schaumann) writes:
  14.  
  15. >In article <1992Nov16.171445.26227@tc.cornell.edu>, elan@tasha (Elan Feingold) writes:
  16. >>How does one match things regardless of case? i.e If I want to match 
  17. >>the keyword COOKIE, and I don't care what combination of upper and lower 
  18. >>letters the person used...
  19. >>
  20. >>Anything but
  21. >>
  22. >>COOKIE        CreateCookie();
  23. >>cOOKIE        CreateCookie();
  24.  
  25. >There are two approaches you can take:
  26.  
  27. >1: Brute force
  28.  
  29. ...
  30.  
  31. >2: 2-level recognition
  32.  
  33. ...
  34.  
  35. 3: Use the -i option, which makes the whole scanner case-insensitive.
  36.  
  37. Michael.
  38.