Build, test, and debug regular expressions
Matches simple if, else if, and else conditional blocks in JavaScript code. It captures the conditions and the corresponding code blocks for each part of the conditional structure. This regex is commonly used for basic syntax highlighting, linting, or parsing control flow statements, though it may struggle with nested braces.