in reply to Regex to match with exclusions
You can use look-behind assertions for that:
This will match only if the part behind 'BO' is not one of your special cases./ ([A-Z.]* (?<!DI\.PRODUCT\.HIERARCHY\.IMPORT\.) (?<!DI\.CATSETUP\.PRODUCT\.IMPORT\.) BO) /x
|
|---|