krasa / GrepConsole

IntelliJ plugin - https://plugins.jetbrains.com/plugin/7125
Apache License 2.0
437 stars 57 forks source link

Change default expressions to include start/end of line #150

Open idontusenumbers opened 5 years ago

idontusenumbers commented 5 years ago

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.*
krasa commented 2 years ago

I do not understand the point of this

idontusenumbers commented 2 years ago

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.

krasa commented 2 years ago

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

idontusenumbers commented 2 years ago

That was not my experience.