Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!unmvax!pprg.unm.edu!hc!lll-winken!uunet!mcvax!hp4nl!philmds!leo From: leo@philmds.UUCP (Leo de Wit) Newsgroups: comp.lang.c Subject: Re: Want a way to strip comments from a Message-ID: <978@philmds.UUCP> Date: 17 Mar 89 07:24:36 GMT References: <7150@siemens.UUCP> <9900010@bradley> <4896@cbnews.ATT.COM> Reply-To: leo@philmds.UUCP (Leo de Wit) Organization: Philips I&E DTS Eindhoven Lines: 14 In article <4896@cbnews.ATT.COM> smk@cbnews.ATT.COM (Stephen M. Kennedy) writes: |In article <9900010@bradley> brian@bradley.UUCP writes: |> The following works in vi: :%s/\/\*.*\*\///g | |/* And this */ important_variable = 42 /* doesn't work either! */ And how about: puts(" A comment /* in here */"); And you can give more examples showing it isn't that trivial; a challenge for the sed adept, perhaps ... Leo.