The regex also needs to ... ignore "/*" ie should the characters be quoted.
It should also handle stuff like this, which compiles and runs just fine:
#include <stdio.h> #include <assert.h> void main (int argc, char ** argv) { int x = 4; int y = 2; int * p = &y; assert(x/*p == 12345 /* p points to y */); printf("everything looks just fine \n"); }
In reply to Re^3: joining lines efficiency?
by AnomalousMonk
in thread joining lines efficiency?
by perlperlperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |