Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Java 8

"
(\d+[-|/]\d+[-|/]\d+\s\S+)\s+(\w+)\s+([^:]+):\s+(.+)*
"
gm

Description

普通日志匹配, 匹配出字段: [time, level, logClass, content]

Submitted by qinxike - 2 years ago