Re: regexp match string with word1 and not word2
- From: Steven Bethard <steven.bethard@xxxxxxxxx>
- Date: Mon, 30 Apr 2007 09:11:34 -0600
Flyzone wrote:
Hello,
i have again problem with regexp :-P
I need to match all lines that contain one word but not contain
another.
Like to do "grep one | grep -v two:"
You don't need a regexp:;
if 'one' in line and 'two:' not in line:
... do something...
STeVe
.
- Follow-Ups:
- Re: regexp match string with word1 and not word2
- From: Flyzone
- Re: regexp match string with word1 and not word2
- References:
- regexp match string with word1 and not word2
- From: Flyzone
- regexp match string with word1 and not word2
- Prev by Date: Re: import structures
- Next by Date: RE: import structures
- Previous by thread: Re: regexp match string with word1 and not word2
- Next by thread: Re: regexp match string with word1 and not word2
- Index(es):