Test, validate and match regular expressions
This regex matches a simple URL-like pattern starting with a single-character protocol (e.g., a://), followed by optional directory segments containing letters, digits, hyphens, underscores, or spaces, and ending with a filename that includes an extension. It is useful for extracting basic resource locators or validating simple web addresses in text. Note that it does not match standard multiple-character protocols like http or https.