I need a regular expression that would let me validate Url. I found this one:
"^(http(?:s)?\:\/\/[a-zA-Z0-9\-]+(?:\.[a-zA-Z0-9\-]+)*\.[a-zA-Z]{2,6}(?:\/?|(?:\/[\w\-]+)*)(?:\/?|\/\w+\.[a-zA-Z]{2,4}(?:\?[\w]+\=[\w\-]+)?)?(?:\&[\w]+\=[\w\-]+)*)$"
But my problem is that besides regular urls, I need to allow .cgi paths, without "http(s)", like this:
123.45.678.543:30/cgi-bin/blah/blah.cgi
Could you please help me figure out how I could add this to the expression above? Thanks.