Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!sun!pitstop!sundc!seismo!uunet!mcvax!hp4nl!botter!star.cs.vu.nl!maart From: maart@cs.vu.nl (Maarten Litmaath) Newsgroups: comp.lang.c Subject: Re^2: Want a way to strip comments from a Keywords: Comments Message-ID: <2226@solo11.cs.vu.nl> Date: 30 Mar 89 04:11:12 GMT References: <7150@siemens.UUCP> <9900010@bradley> <4895@cbnews.ATT.COM> <615@nikhefh.hep.nl> Organization: V.U. Informatica, Amsterdam, the Netherlands Lines: 9 stil@nikhefh.hep.nl (Gertjan Stil) writes: \What about the following command in vi: :%s/\/\*[.|\n]*\*\///g \This will work for multi-line comments. Really? Try it yourself (before posting)! -- Modeless editors and strong typing: |Maarten Litmaath @ VU Amsterdam: both for people with weak memories. |maart@cs.vu.nl, mcvax!botter!maart