home *** CD-ROM | disk | FTP | other *** search
- 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
- From: godden@stein.u.washington.edu (Jeff Godden)
- Newsgroups: comp.unix.questions
- Subject: warning possible FAQ: not substring in regex
- Keywords: regular expression
- Message-ID: <1992Nov7.003902.3217@u.washington.edu>
- Date: 7 Nov 92 00:39:02 GMT
- Article-I.D.: u.1992Nov7.003902.3217
- Sender: news@u.washington.edu (USENET News System)
- Organization: University of Washington
- Lines: 14
-
- Sorry Folks if this is a overasked or (worse yet) an obvious question,
-
- How do you specify within a regular expression NOT a substring? That
- is, suppose I want to find all filenames that begin with the letter
- 'z' and don't contain the string "cy" anywhere in them, is this possible?
- If so how? Does this work?:
-
- ^z.*[^c][^y].*
-
- Sorry for the stupid question. Couldn't find this issue in any "FM".
-
- May your camel spit nothing but dates,
- jeff
- godden@u.washington.edu
-