Test, validate and match regular expressions
This regex matches sequences of 2 or more lowercase letters, digits, or hyphens that are surrounded by whitespace (space, tab, newline) or punctuation (period, comma, semicolon). It is useful for extracting standalone identifiers, tokens, or hyphenated words from text while ignoring single-character items and those attached to other characters. Common use cases include tokenizing logs, parsing configuration files, or isolating specific word patterns in natural language processing.