Regular Expression Question
Posted on 2003-02-24
I need a regular expression that will match every NEWLINE (\n) that is NOT followed by a date in the format:
That is to say, It should NOT match these:
But should match:
I have an enormous text file that is the results of a database query, and unfortunately, the data in one of the fields is a CLOB that can, (and does,) contain newline characters. Since the beginning of each legitimate line is always a date in the format mm/dd/yyyy between 1993 and 1998, I JUST want to keep those.
I know I can match the LEGIT lines with:
But how do I match all newlines that do NOT match that?