I am working on RegEx that will match a string that contains only uppercase letters and digits but not exact words ABC or XYZ or LMN.
^(?!ABC|XYZ|LMN)([A-Z0-9