Hi,
I am using Visual Studio 2005 and language C#
I want to parse a file to extract some data using Regular Expression.
I used using System.Text.RegularExpress
ions;
Please help me to parse a attached file using regular expression which is based on some pattern
I want exactly cert,Name and company based on pattern for regular expression.
Currently i am using
String pattern = "cert:(?<CertNo>.{9})\\s\\
S* full name is\\s+(?<Name>.{12})\\s+co
mpany=(?<C
ompany>.{1
1})";
as a pattern, But its parse only first line not 2nd line, because the contents on 2nd line is differ and not matched with the pattern. Please help me to write exact pattern to parse both line.
Let me know if you have any question.
Thanks in Advance
Ganesh Dutt Upadhyay
Start Free Trial