123123452149856874
12312345 2149 8568 74
Dim s As String = "123123452149856874" Console.WriteLine("{0} {1} {2} {3}", s.Substring(0, 8), s.Substring(8, 4), s.Substring(12, 4), s.Substring(16, 2))
System.Text.RegularExpressions.Regex.Replace
([0-9]{8})([0-9]{4})([0-9]{4})([0-9]{2})
string.Substring
string.Format("{0} {1} {2} {3}", arrayOfFourSubstrings)
Dim myString As String = "123123452149856874" Dim test1 As string = myString.Substring(1,8) Dim test1 As string = myString.Substring(9,12) Dim test1 As string = myString.Substring(13,16) Dim test1 As string = myString.Substring(17,18)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)