recategorized by
369 views
2 votes
2 votes
Recall that a typical URL has the following form. It starts with a protocol specifier, followed by a colon (:) and two forward slashes (/), followed by a hostname and a domain name. This is followed by an optional path specifier. Some example URLs are given below.
{http://www.isical.ac.in/}
{http://www.isical.ac.in/deanoffice/results.html}
{http://www.isical.ac.in/deanoffice/results/jrf/}
Assuming that A-Z, a-z, and $0-9$ are the only characters that can be used in a host / domain / file / directory name, write a regular expression for URLs.
recategorized by

Please log in or register to answer this question.

Related questions

6 votes
6 votes
2 answers
1
go_editor asked Jun 3, 2016
924 views
Let $L$ be the set of strings over $\{0, 1\}$ containing an unequal number of $0$s and $1$s. Prove that$L$ is not regular.$L^2$ is regular.
4 votes
4 votes
0 answers
2