Test, validate and match regular expressions
This regex matches every literal hyphen (-) character in the input text. With the global (g) and multiline (m) flags, it finds all hyphens across any number of lines, making it useful for identifying list markers, bullet points, or dash separators in documents. It can be applied in text processing tasks such as parsing markdown-style lists, extracting hyphen-delimited data, or cleaning up unnecessary dashes from multiline content.