home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / editors / 2020 < prev    next >
Encoding:
Internet Message Format  |  1992-08-17  |  1.3 KB

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!menudo.uh.edu!sugar!ficc!peter
  2. From: peter@ferranti.com (Peter da Silva)
  3. Newsgroups: comp.editors
  4. Subject: Re: Regular Expression Question
  5. Message-ID: <id.FYFS.IH1@ferranti.com>
  6. Date: 17 Aug 92 19:05:44 GMT
  7. References: <sjreeves.920812075405@eng.auburn.edu> <1992Aug13.115656.16757@cas.org>
  8. Sender: peter@ferranti.com (peter da silva)
  9. Organization: Ferranti International Controls Corporation, MME Project
  10. Lines: 17
  11.  
  12. In article <1992Aug13.115656.16757@cas.org> lvirden@cas.org (Larry W. Virden) writes:
  13. >In article <sjreeves.920812075405@eng.auburn.edu> sjreeves@eng.auburn.edu (Stan Reeves) writes:
  14. >:I need to construct a regular expression that locates all words without
  15. >:an "@".  I've exhausted all my own ideas and was wondering if I could
  16. >:draw on the expertise of this group.
  17.  
  18. Define "word". The definition I'd use:
  19.  
  20.     [A-Za-z][a-z]*
  21.  
  22. sort of automatically disallows '@'. Once you've defined a word, the regular
  23. expression should follow.
  24. -- 
  25. Peter da Silva                                               `-_-'
  26. $ EDIT/TECO LOVE                                              'U` 
  27. %TECO-W-OLDJOKE Not war?                        Have you hugged your wolf today?
  28. Ferranti Intl. Ctls. Corp.      Sugar Land, TX  77487-5012       +1 713 274 5180
  29.