Test, validate and match regular expressions
Matches a non-whitespace character followed by optional whitespace and the literal text 'END'. This pattern is useful for finding END statements or keywords in code, configuration files, or data formats that require END to follow other content on a line, preventing matches on lines starting with END. The global flag allows finding all occurrences in a document.