in reply to Regex to match with exclusions
Is there a reason why you can't use more than one regex to accomplish this? I'm guessing at the exclusion criteria; but you should be able to adapt the approach if there is more to it.
@lines = grep { /\.BO / && ! /CATSETUP|PRODUCT/ } <DATA>;
Somebody more skilled than I will no doubt come up with a single regex solution.
|
|---|