Test, validate and match regular expressions
This regex matches one or more of any character (except newline) followed by a colon. It captures the prefix before a colon, which is useful for parsing key-value pairs, extracting labels, or identifying header names in text. The greedy quantifier captures as much as possible but still requires the final colon.