Build, test, and debug regular expressions
This regex matches abbreviations or acronyms consisting of two or more consecutive uppercase letters. By utilizing negative lookbehind and lookahead assertions, it effectively excludes any abbreviations that are directly enclosed in parentheses, such as "(NASA)". It is particularly useful for text analysis tasks where you need to extract standalone abbreviations while ignoring those provided as inline clarifications.