Perl: Negative look behind regex question [migrated]
- by James
The Perlre in Perldoc didn't go into much detail on negative look around but I tried testing it, and didn't work as expected. I want to see if I can differentiate a C preprocessor macro definition (e.g. #define MAX(X) ....) from actual usage (y = MAX(x);), but it didn't work as expected.
my $macroName = 'MAX';
my $macroCall = "y =…