0
我想用一個正則表達式從一個log4net文本文件中抽取複雜句子中的數據。如何使用正則表達式從複雜句子中提取特定數據?
4012 09:47:03 INFO QueueController - method GetData(), Start = 15-3-2017 09:47:01, ElapsedSeconds = 1,9023, Task = 7514, Thread = 9
我需要準備以下數據:
Method = GetData()
Time = 09:47:03
Start = 15-3-2017 09:47:01
ElapsedSeconds = 1,9023
Task = 7514
Thread = 9
我在網上搜索,但我找不到怎麼做,在這種更復雜的情況。有誰知道解決方案?
非常感謝, 的Jordy
你做了一個基本的正則表達式的教程,並試圖自己嗎? –
看起來很直接 –
@Jordy檢查下面的答案,如果這項工作 –