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; }
In reply to Re^3: Using Look-ahead and Look-behind
by heyjoec
in thread Using Look-ahead and Look-behind
by Roy Johnson
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |