Re: [Regexp] a regexp question

"Hartwig, Thomas" <[email protected]>
Newsgroups gmane.comp.gnu.regexp
Message-ID <[email protected]>
If you have a sort of unix this one could help you:

sed 's/puppy.*kitty/§§§/' | grep -v "§§§"

§§§ is just a sample.

Thomas

Levent Yilmaz wrote:
> Hello,
> 
> It sounded like a very simple problem but I couldn't come up with a 
> solution. I was trying to do this with Basic Regexp in grep:
> 
> Find all lines which contain the word 'kitty'. But only those lines that 
> do not have 'puppy' somewhere before 'kitty'. For instance:
> 
> my kitty is very cute
> but puppy is cuter than kitty
> 
> What regular expression stands for the first line but not the second? 
> Note that the other way is very easy, that is the lines with 'puppy' 
> followed by 'kitty': puppy.*kitty
> 
> thank you so very much!
> -Levent.
> 
> 
> PS: What is all this spam on the list by the way?
> 
> 
> 
> _______________________________________________
> Gnu-regexp-users mailing list
> [email protected]
> http://mail.gnu.org/mailman/listinfo/gnu-regexp-users

_______________________________________________
Gnu-regexp-users mailing list
[email protected]
http://mail.gnu.org/mailman/listinfo/gnu-regexp-users
t.hartwig.vcf (text/x-vcard, 298 B)
begin:vcard
fn:Thomas Hartwig
n:Hartwig;Thomas
adr:;;Boppstr. 11;Berlin;D;10967;Germany
email;internet:[email protected]
tel;work:+49 30 69599727
tel;fax:+49 30 695969444
tel;cell:+49 172 3265984
note:GnuPG/PGP: 0xC51B523B
x-mozilla-html:FALSE
url:http://www.crapoud.com
version:2.1
end:vcard
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.