Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: C style multiple line comment removal

by Anonymous Monk
on Jun 08, 2012 at 08:16 UTC ( #975110=note: print w/ replies, xml ) Need Help??

in reply to C style multiple line comment removal

I was able to remove all the comment but couldn't remove the first 3 lines of the comment using the regex can you please help me

Show your code :)

Comment on Re: C style multiple line comment removal
Replies are listed 'Best First'.
Re^2: C style multiple line comment removal
by prassi (Acolyte) on Jun 08, 2012 at 08:29 UTC

    Code is already posted

      Would it have inconvenienced your precious typing fingers to cut and paste your code that is failing to work? When you say "Code is posted." you can't be serious, since the only Perl code posted was by ckj, and was simply an incomplete snippet presenting a partial example. The only code you posted was the C code that you wish to remove a multiline comment from.

      Post your Perl source code.


        Here is the code re posting it

        /*This is the file which is used for the developing the code for multiple IO operation Author : Grey*/ void main() { int a, b; int d; //This is the temp copy buffer. a = 10; b = 11;//This is the temp value assigned to the variables c = a+b; d = c+1; /*I am copying this with a increment*/ }

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2015-11-30 12:27 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (769 votes), past polls