"standard" regex \r and \n switches do not work
Posted: Thu Mar 12, 2009 12:21 pm
I have 2 text files, one with:
---
Invoice Date: 01/20/2009 PAYMENT DUE DATE:
02/19/2009
---
And another with:
---
Invoice Date: 02/20/2009 PAYMENT DUE DATE:
03/20/2009
---
(Yes, there is a "blank line" between the text and the date)
The "regular expressions" site (http://www.regular-expressions.info/) tutorial says that line ends (blank lines) can be trapped so that an expression like:
Date:\r\n\r\n\d\d[/]\d\d[/]
This SHOULD allow for the blank line and correctly ignore the different dates for the "payment due" part.
(The "invoice date" part is easilly and correctly trapped with a different regex)
My little regex testing program "RegExBuddy" says that this is valid and correct, but ExamDiff (both v4.0 and 4.5beta) do not seem to support this.
Even using the "fuzzy line matching" advanced feature in v4.5b is of no help.
Is there a plan to include support for the "\r\n" combo, (or something similar) to allow for what is a valid regex that can cover a "block" of lines?
---
Invoice Date: 01/20/2009 PAYMENT DUE DATE:
02/19/2009
---
And another with:
---
Invoice Date: 02/20/2009 PAYMENT DUE DATE:
03/20/2009
---
(Yes, there is a "blank line" between the text and the date)
The "regular expressions" site (http://www.regular-expressions.info/) tutorial says that line ends (blank lines) can be trapped so that an expression like:
Date:\r\n\r\n\d\d[/]\d\d[/]
This SHOULD allow for the blank line and correctly ignore the different dates for the "payment due" part.
(The "invoice date" part is easilly and correctly trapped with a different regex)
My little regex testing program "RegExBuddy" says that this is valid and correct, but ExamDiff (both v4.0 and 4.5beta) do not seem to support this.
Even using the "fuzzy line matching" advanced feature in v4.5b is of no help.
Is there a plan to include support for the "\r\n" combo, (or something similar) to allow for what is a valid regex that can cover a "block" of lines?