' Collection of code snippets by Arne Vajhøj 
' (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
Imports System
Imports System.Text.RegularExpressions

Module Main
    Function Strip(url As String) As String
        Strip = Regex.Matches(url, "(?:(?:http://)|(?:))(.*)")(0).Groups(1).ToString()
    End Function
    Sub Main()
        Console.WriteLine(Strip("http://www.eksperten.dk"))
        Console.WriteLine(Strip("www.eksperten.dk"))
    End Sub
End Module
