Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!ucsd!chem.ucsd.edu!tps From: tps@chem.ucsd.edu (Tom Stockfisch) Newsgroups: comp.lang.c Subject: Re: Want a way to strip comments from a C file Message-ID: <427@chem.ucsd.EDU> Date: 25 Mar 89 07:03:30 GMT References: <7150@siemens.UUCP> <880@m10ux.UUCP> <4060@ttidca.TTI.COM> <891@m10ux.UUCP> Reply-To: tps@chem.ucsd.edu (Tom Stockfisch) Distribution: usa Organization: Chemistry Dept, UC San Diego Lines: 13 In article <891@m10ux.UUCP> mnc@m10ux.UUCP (Michael Condict) writes: #----------- Lex script to delete comments from C source code ---------------- #%% #\"([^\\"]*\\(.|\n))*[^\\"]*\" ECHO; #"/*"([^*]*"*"[^/])*[^*]*"*/" ; #. ECHO; #Can anyone find anything wrong with this one (he asks stupidly)? Fails on /***/ -- || Tom Stockfisch, UCSD Chemistry tps@chem.ucsd.edu