Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 lurking in the Monastery: (7)
As of 2014-12-21 01:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (100 votes), past polls