' 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
    Sub Main()
        Dim s As String = "abdefghij"
        Console.WriteLine(s.Replace("ef", "xx"))
        Console.WriteLine(Regex.Replace(s, "[defgh]", "x"))
    End Sub
End Module
