What the best way to parse and find The specific data

Posted by Khemlall Mangal on Stack Overflow See other posts from Stack Overflow or by Khemlall Mangal
Published on 2011-11-11T17:46:04Z Indexed on 2011/11/11 17:52 UTC
Read the original article Hit count: 96

Filed under:

Ok i have an issue i want to resolve. I have the following log file, and i want to parse it and find the errors and then compare them to user expected results and if it doesnt match then error or else pass.... the part that i am having trouble with is finding error within the log.... So in this example, within the log starting point is MASTER EXCLUSIONS:[ALL_EXCLUSIONS] errors: Then error can be in two format as show below. what the regular expressssion orcode that i can use to parse this and get pull out these error from count of 1 to end and i will just be able to take the array value for exammple results[1] - compare if == myresults[1] as an exmple.... outputting it in a file is ok too

© Stack Overflow or respective owner

Related posts about c#