Test, validate and match regular expressions
This regex matches short lines of 1-30 characters that may end with an optional colon, using surrounding newlines as delimiters. It captures the line content without the trailing colon, making it suitable for extracting titles, headings, or key-value labels in text files. The multiline flag allows processing across multiple lines.