' 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 Test(ByVal url As String) As Boolean
        Return Regex.IsMatch(url, "\?id=\d+$")    
    End Function
    Sub Main()
        Console.WriteLine(Test("http://www.site.dk/test/default.aspx?id=22"))
        Console.WriteLine(Test("http://www.site.dk/test/?id=22"))
        Console.WriteLine(Test("http://www.eksperten.dk/"))
        Console.WriteLine(Test("http://www.eksperten.dk/regler.phtml"))
    End Sub
End Module
