Build, test, and debug regular expressions
This regex matches a text block starting with a line containing 'idMatches:', followed by arbitrary content (including newlines due to (?s) dotall mode), then the literal 'Close: ' and the rest of the text until the end. It captures the id, the first content section, the close marker, and the trailing content in four groups. It is useful for extracting structured segments from logs or configuration files where markers delimit sections.