У меня есть одна строка, например
sgcib.solstis.core.dao.referential.InsertionMonitoringDao:10:37:36.860 [SOLSTAIRJVM1: customService :false-persistor-3-] INFO Begin updating insertion_monitoring table: analysisProcessId=1000000648897, insertionMonitorId=9153700, binFileName=TIS_MRM_Meteor_DeltaSpot_RA_SMCPLX_47769.2x2.2016-11-29-00-00-00_1480377600000.bin.tisdevweb043.SOLSTAIRJVM1
Здесь извлеките значение [SOLSTAIRJVM1: customService :false-persistor-3-] как поле потока И 1000000648897 как одно поле analysisProcessId и 9153700 как другое поле insertionMonitorId strong>. Значения полей в строке ввода необязательны, если поля, не найденные в строке ввода, должны отображаться с пустым значением.
Может ли кто-нибудь предложить, как написать шаблон?
\[(?<thread>[^\]\[]*)].*?analysisProcessId=(?<analysisProcessId>\d+).*?insertionMonitorId=(?<insertionMonitorId>\d+)
? - person Wiktor Stribiżew   schedule 22.12.2016