J
Jerry
I am reading lines from a file that I need to breakdown.
while( ( read = FI.ReadLine() ) != null )
{
Console.WriteLine( read );
if( read.Contains( "<var>" ) )
{
Regex r = new Regex( @"^\<(\w+)>(\w+),(\d+),(\d+),(\d+)" );
string[] s = r.Split( read );
}
}
FI.Close();
The above works fine for "<var>StmtBal,7,60,19</var>".
But not for "<var>Acct#,5,0,1</var>" or
"<var>.........Description..........,30,16,6</var>".
How do I handle the "#", "*" etc and ".."?
Thanks,
Jerry
while( ( read = FI.ReadLine() ) != null )
{
Console.WriteLine( read );
if( read.Contains( "<var>" ) )
{
Regex r = new Regex( @"^\<(\w+)>(\w+),(\d+),(\d+),(\d+)" );
string[] s = r.Split( read );
}
}
FI.Close();
The above works fine for "<var>StmtBal,7,60,19</var>".
But not for "<var>Acct#,5,0,1</var>" or
"<var>.........Description..........,30,16,6</var>".
How do I handle the "#", "*" etc and ".."?
Thanks,
Jerry