ASKER
string line = "%E?;100000640632?2007/08/28 11:05:53";
string matchPattern = @"([^0-9]*)(1[0-9]{11}|[0-9]{11})([^0-9]*)([0-9]{4}/[0-9]{2}/[0-9]{2}) ([0-9]{2}:[0-9]{2}:[0-9]{2})";
Regex re = new Regex(matchPattern);
string[] matches = re.Split(line);
int count = matches.GetUpperBound(0);
if (count >= 5)
{
Console.Write(matches[2]);
Console.Write(matches[4]);
Console.WriteLine(matches[5]);
Console.ReadKey();
}
ASKER
The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.
TRUSTED BY
Open in new window