I have a procedure in my program which must verify a URL.
Code:
proc Test_URI {uri} {
regexp {/|http://([a-zA-Z\.\-]+?)(?::([0-9]+))?(/.*)$} $uri match
if {$uri == ""} { #if URI is empty make a list containing status and reason of wrong URI set answer {"incorrect" "empty"}
}...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.