Test, validate and match regular expressions
This regex matches the literal word "Else" while explicitly excluding instances where it is immediately followed by "If" (such as "ElseIf") via a negative lookahead. It also accounts for any trailing spaces, tabs, and an optional semicolon. This pattern is particularly useful for code conversion or refactoring tasks, such as translating standalone Else statements from languages like VBScript or AutoIt into C-style block syntax.