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
In reply to Re: Regex to match with exclusions
by kroach
in thread Regex to match with exclusions
by fazedandconfused
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |