V
Vai2000
Hi All, I have a file which has some lines starting with value 50.
xxx
xxx
50
vvvv
50
I have a solution by which I read line and filter the ones which I want...
Is there a way I can get it via Regular Expression,. Somehow this expression
is not working...please correct.
Regex reISA = new Regex(@"^[5][0]");
MatchCollection mGS = reISA.Matches(filecontent); // file read via
streamreader into a string content
foreach (Match m in mGS){
System.Diagnostics.Debug.WriteLine(m.Index+" "+m.Value);
}
TIA
xxx
xxx
50
vvvv
50
I have a solution by which I read line and filter the ones which I want...
Is there a way I can get it via Regular Expression,. Somehow this expression
is not working...please correct.
Regex reISA = new Regex(@"^[5][0]");
MatchCollection mGS = reISA.Matches(filecontent); // file read via
streamreader into a string content
foreach (Match m in mGS){
System.Diagnostics.Debug.WriteLine(m.Index+" "+m.Value);
}
TIA