in reply to Re^2: Using Look-ahead and Look-behind
in thread Using Look-ahead and Look-behind
I changed the sub TestEquity to allow for any text between Private and Equity, but I can't get it to work. What have I done wrong?
sub TestEquity { return 1 if $_[0] =~ m/(?<!private).*equity/; return 0; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Using Look-ahead and Look-behind
by AnomalousMonk (Archbishop) on Jun 19, 2014 at 12:09 UTC | |
Re^4: Using Look-ahead and Look-behind
by Anonymous Monk on Jun 19, 2014 at 23:13 UTC |