Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^5: Regex to strip comments (out not in)

by BrowserUk (Pope)
on Oct 01, 2012 at 18:20 UTC ( #996708=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    C:\test>type junk.c
    
    ...
    Copyright (C) Microsoft Corporation.  All rights reserved.
    
    junk.c
    
  2. or download this
    C:\test>type junk.c
    /*
    ...
    junk.c(2) : error C2001: newline in constant
    junk.c(2) : error C2059: syntax error : 'string'
    junk.c(3) : warning C4138: '*/' found outside of comment
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://996708]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2015-07-05 10:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (61 votes), past polls