A domain is made up of multiple parts.
It starts with a protocol (http:// or https://)
There can be optional subdomains, a common example is www.
Then there is the domain name itself.
And lastly the top-level domain (TLD) like .com or .de
For the task only consider these requirements:
Hint:
Make sure to escape the dot \.
Match all valid domains (Definition in description)