Test, validate and match regular expressions
This PCRE2 regex matches domain names within arbitrary text, capturing them in two common contexts: domains preceded by a hyphen-space separator (like list items), and domains followed by a forward slash (like URLs). It enforces standard domain naming rules: alphanumeric start/end, hyphens allowed in between, and total domain length between 3-63 characters. Useful for extracting domain references from documentation, logs, or unstructured text.