GrepConsole icon indicating copy to clipboard operation
GrepConsole copied to clipboard

Change default expressions to include start/end of line

Open idontusenumbers opened this issue 5 years ago • 4 comments

Seems like disabling the 'match only first N' option works great if you change the default expressions to be more like:

^.*WARN.*$

instead of

.*WARN.*

idontusenumbers avatar Aug 27 '19 16:08 idontusenumbers

I do not understand the point of this

krasa avatar Oct 26 '21 11:10 krasa

With the default expression, the match includes everything leading up to and then following the WARN message. This information is typically not part of the log entry.

idontusenumbers avatar Oct 26 '21 14:10 idontusenumbers

typically every line is tested separately, so both regexps would do the same

krasa avatar Oct 26 '21 14:10 krasa

That was not my experience.

idontusenumbers avatar Oct 26 '21 15:10 idontusenumbers