RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Matches Line and All Subsequent Lines that begin with tab
Expression
\w.+(\n\t.+){0,}
Description
This can be easily modified for whatever log parsing purpose you have that matches this structure. For Example I use this on postgres logs so I can easily group each message together. When postgres logs queries if there is a lf/cr then it copies it verbatim. I suppose you could try to change this in the postgres config for logging not sure if it would be possible or a good idea but you can use this regex to help.
Matches
line\n\tnext line start with tab
Non-Matches
line\n\line\n
Author Rating: Not yet rated. John
Source John Klann
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials