Re: [nxlog-ce-users] Regular expresion

2016-05-13 Thread Botond Botyanszki
Hi, Since your input has linebreaks you might want to use the /ms modifiers, see here: https://nxlog.org/docs/en/nxlog-reference-manual.html#lang_binop_regmatch Regards, Botond On Fri, 13 May 2016 01:45:56 +0200 Antonio Cuesta García wrote: > Hi! > > This regular expresión: ^\d{2}\/\d{2}-\d{2

[nxlog-ce-users] Regular expresion

2016-05-12 Thread Antonio Cuesta García
Hi! This regular expresión: ^\d{2}\/\d{2}-\d{2}:\d{2}:\d{2}\.\d+ ((?:\d{1,3}\.){3}\d{1,3}) -> (?:\d{1,3}\.){3}\d{1,3}.*?\nICMP.*?\n.*?ECHO REPLY Is valid to this text: 05/10-16:36:31.861001 216.58.201.131 -> 192.168.20.151 ICMP TTL:128 TOS:0x0 ID:33170 IpLen:20 DgmLen:84 Type:0 Code:0 ID:20