Parts of URL

Report a typo

Match the parts of the URL regex with their explanations.

(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w\.-]*)*\/?
Match the items from left and right columns
(https?:\/\/)? 
([\da-z\.-]+)\.([a-z\.]{2,6})
([\/\w\.-]*)*
Matches domains and then the zero-level domain
First optional part of the URL. These are letters "http", possibly "s", a colon, and two slashes
Identifies the file
___

Create a free account to access the full topic