Build, test, and debug regular expressions
This regex matches content that appears between STARTKEYWORD and ENDKEYWORD, capturing the text in group 1. If ENDKEYWORD is not present on the same line, it matches up to the end of the line instead. It is useful for extracting delimited sections in logs, config files, or text processing tasks where an optional closing marker exists.