home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / question / 13059 < prev    next >
Encoding:
Internet Message Format  |  1992-11-08  |  1.0 KB

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!uwm.edu!ogicse!news.u.washington.edu!stein.u.washington.edu!godden
  2. From: godden@stein.u.washington.edu (Jeff Godden)
  3. Newsgroups: comp.unix.questions
  4. Subject: warning possible FAQ:  not substring in regex
  5. Keywords: regular expression
  6. Message-ID: <1992Nov7.003902.3217@u.washington.edu>
  7. Date: 7 Nov 92 00:39:02 GMT
  8. Article-I.D.: u.1992Nov7.003902.3217
  9. Sender: news@u.washington.edu (USENET News System)
  10. Organization: University of Washington
  11. Lines: 14
  12.  
  13. Sorry Folks if this is a overasked or (worse yet) an obvious question,
  14.  
  15. How do you specify within a regular expression NOT a substring?  That
  16. is, suppose I want to find all filenames that begin with the letter
  17. 'z' and don't contain the string "cy" anywhere in them, is this possible?
  18. If so how?  Does this work?:
  19.  
  20.      ^z.*[^c][^y].*
  21.  
  22. Sorry for the stupid question.  Couldn't find this issue in any "FM".
  23.  
  24. May your camel spit nothing but dates,
  25. jeff
  26. godden@u.washington.edu
  27.