home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / perl / 7390 < prev    next >
Encoding:
Text File  |  1992-12-13  |  764 b   |  23 lines

  1. Newsgroups: comp.lang.perl
  2. 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
  3. From: sommar@enea.se (Erland Sommarskog)
  4. Subject: Re: C comment parser?
  5. Message-ID: <1992Dec13.144337.9443@enea.se>
  6. Organization: Enea Data AB
  7. References: <1268@galileo.rtn.ca.boeing.com> <mcook.724208094@fendahl.dev.cdx.mot.com>
  8. Date: Sun, 13 Dec 1992 14:43:37 GMT
  9. Lines: 12
  10.  
  11. Michael Cook (mcook@fendahl.dev.cdx.mot.com) writes:
  12. >I can give you an RE that'll work.  Here:
  13. >
  14. > s%/\*([^*]|\*+[^/*])*\*+/%%g
  15.  
  16. Nope. Won't work in all cases. Consider:
  17.  
  18. printf("/*");
  19. .....
  20. printf("*/");
  21. -- 
  22. Erland Sommarskog - ENEA Data, Stockholm - sommar@enea.se
  23.