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