in reply to Re^3: Pimp My RegEx
in thread Pimp My RegEx
as originally written your regex would miss the last log entry, because it fails the positive lookahead assertion
You are correct - definately an unintended consequence. Since a log file entry could span multiple lines I was using the lookahead to in effect say "stop capturing when you can see the next log file entry"
The sample data I included in the original script probably should have included some of the more complex, multi-line log file entries.
|
|---|