Community Patterns

Community Library Entry

3

Regular Expression
Created·2015-11-10 08:51
Flavor·PCRE (Legacy)

/
(?:([^:,\s]+):\s+([^:\n]+)|\G(?!\A))\s*at\s+(\S+)\((\w+\.\w+):(\d+)\)$
/
gm
Open regex in editor

Description

Exception Message:

java.lang.NullPointerException: Sample Java Logback Exception at Sample.errorLevel3(Sample.java:35) at Sample.errorLevel2(Sample.java:31) at Sample.errorLevel1(Sample.java:27) at Sample.main(Sample.java:15)

Submitted by Amit