Imports System.Text.RegularExpressions Public Class Tester Public Shared Sub Main Console.WriteLine(New Regex("\d").Replace("1, 2, 3, 4, 5, 6, 7, 8", "digit", 3)) End Sub End Class
digit, digit, digit, 4, 5, 6, 7, 8