Regular Expressions VB.Net Tutorial

Imports System.Text.RegularExpressions
Public Class Tester
    Public Shared Sub Main
    
       Console.WriteLine(New Regex("stars").Replace("This sentence ends in 5 stars *****", "carets
))
    End Sub
End Class
This sentence ends in 5 carets *****