Hi , I have a large input file which is of the form . I am developing a framework which would extract the no of Passed and Failed test cases . If the test cases is "***Passed***" then it should show on the Case-URL and Req-URL of the Passed test cases ,and similarly for the failed ones their own Case-Url and Req-URL must be shown . Please help me how do I extract that ..
Sample input file : Execution start time 09/13/2013 02:43:55 pm [Case-Url] - www.google.com [Req-URL ] - www.qtp.com ***Passed*** __________________________________________________________ [Case-Url] - www.yahoo.com [Req-URL ] - www.msn.com ***Passed*** ___________________________________________________________ [Case-Url] - www.google.com [Req-URL ] - www.qtp.com ***Failed***
In reply to perl regex extraction from a large input file by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |