home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!pmafire!news.dell.com!natinst.com!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!math.fu-berlin.de!unidui!rrz.uni-koeln.de!Germany.EU.net!mcsun!sunic!seunet!enea!sommar
- From: sommar@enea.se (Erland Sommarskog)
- Subject: Re: C comment parser?
- Message-ID: <1992Dec13.144337.9443@enea.se>
- Organization: Enea Data AB
- References: <1268@galileo.rtn.ca.boeing.com> <mcook.724208094@fendahl.dev.cdx.mot.com>
- Date: Sun, 13 Dec 1992 14:43:37 GMT
- Lines: 12
-
- Michael Cook (mcook@fendahl.dev.cdx.mot.com) writes:
- >I can give you an RE that'll work. Here:
- >
- > s%/\*([^*]|\*+[^/*])*\*+/%%g
-
- Nope. Won't work in all cases. Consider:
-
- printf("/*");
- .....
- printf("*/");
- --
- Erland Sommarskog - ENEA Data, Stockholm - sommar@enea.se
-