On 03/25/2011 02:27 PM, Supratik Goswami wrote: > Hi > > I want to extract everything with multiple lines between two markers. > > I want to display everything between: > > /WY_LOG_TYPE_ERROR <<**/ > > > /**>>/ > / > / > / > / > So if the text entered in the log file > > /WY_LOG_TYPE_ERROR <<**/ > /================================/ > / 2011-03-25 06:08:30/ > /================================/ > /Blah blah blah/ > / > / > / > /Blah blah blah/ > / > / > / > / > /Blah blah blah/ > / > / > / > / > /Blah blah blah/ > / > / > / > /**>>/ > > It should match and display everything between the two markers including > the markers. > > I tried the following regular expression patterns but it is not working: > > * pattern=(?s)WY_LOG_TYPE_ERROR\s*<<\*\*(.)*>>\*\* > * pattern=(?s)WY_LOG_TYPE_ERROR\s*<<\*\*(.|\n)*>>\*\* > * pattern=WY_LOG_TYPE_ERROR\s*<<\*\*(.|\n)*>>\*\* > > > Can you please tell me what I am missing here.
If you want to match multiple lines at once, you should also set 'ptype' field accordingly -- instead of RegExp, you have to use RegExpN. Also, default maximum value for N is 10, so if you want to match more than 10 lines at once, you have to set --bufsize command line option accordingly. regards, risto > > -- > Warm Regards > > Supratik > > > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > > > > _______________________________________________ > Simple-evcorr-users mailing list > Simple-evcorr-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users ------------------------------------------------------------------------------ Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar _______________________________________________ Simple-evcorr-users mailing list Simple-evcorr-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users