Skip to main content
10 events
when toggle format what by license comment
Aug 8, 2016 at 11:04 comment added Sharique Alam This perl command works for me .Thanks a lot However removing blank line is not working..
Jul 25, 2016 at 11:17 history edited Hans Schou CC BY-SA 3.0
The shortest version
Jul 21, 2016 at 20:57 comment added ilkkachu Perhaps .*? instead of .+? if /**/ is a valid comment too.
Jul 21, 2016 at 13:30 comment added Stéphane Chazelas See -0777 as a shorter way to do BEGIN{$/=undef}
Jul 21, 2016 at 12:45 comment added Luciano Andress Martini It looks fine i will test it!
Jul 21, 2016 at 12:32 comment added Hans Schou Great! Then my solution works. Note I use non-greedy: ".+?"
Jul 21, 2016 at 12:29 comment added Hans Schou BTW: What should happen to a single line containing: "/*foo*/run;/*bar*/" ? Should that just be "run;" ?
Jul 21, 2016 at 12:20 comment added Hans Schou well, I agree with terdon: Lets see the expected output.
Jul 21, 2016 at 12:11 history edited Hans Schou CC BY-SA 3.0
added 58 characters in body
Jul 21, 2016 at 12:06 history answered Hans Schou CC BY-SA 3.0