各种表达式

匹配中间有特定字符串的字符
如匹配中间含有failed字段的字符串

2018-06-14 11:23:23.976 |- WARN com.st.Test [main]  - thread failed sleep for 0

匹配日志

2018-06-18 12:06:56.452 |- INFO com.st.cookiev2.sinaweibo.SinaWeiboTask [pool-1-thread-2] - login finish: 13810703845
^.*login finish: [0-9]+.*$

Java使用正则表达式

参考博客

[1]​​https://zhidao.baidu.com/question/199294249046410845.html​​​
[2]​​​http://www.runoob.com/regexp/regexp-syntax.html​​​