Lab 5 of 5
Β·
Open-Ended
Ask Claude β Build a Regex for My Hostnames
Objective: Paste a list of real or realistic hostnames and ask Claude to suggest a regex pattern that extracts key fields.
Instructions
Paste a list of hostnames below β at least 5, ideally with some variation in format (different types, sites, numbering schemes, or inconsistencies).
Claude will: - Suggest a regex pattern that extracts the meaningful parts - Explain what each group captures and why - Point out any hostnames that do not match and suggest how to handle them
π‘ Show Hint
Include a mix of well-formed and awkward hostnames. The more realistic your list, the more useful the pattern Claude suggests.
Paste Your Output