I’m trying to match occurrences of the word “organization” but not when it occurs in between square brackets:
Example strings:
The organization “[organization name]” must contain at least one user per organization. The ID [id] for [organization] must contain digits only
I try to use:
(?:^|\s)(organization)(?!])
but the only flavor supported in the application I'm using is POSIX Extended Regex.