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.
In reply to Re^4: Pimp My RegEx
by heathen
in thread Pimp My RegEx
by heathen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |