Hi,

Unfortunately there is still an open issue with the grammar wrt
backslashes inside regular expressions, I think this case is also related.

The workaround is to avoid using '\/', e.g. it may be possible to use the
'.' instead.

Regards,
Botond

On Mon, 28 Jul 2014 15:19:00 -0400
Chris <didji...@gmail.com> wrote:

> Sorry, I still cant get this working.  The regex works fine in the
> xm_multiline , but does not compile in im_file. Thought I could replace the
> "/" delimiter to prevent escaping , but that didn't work either. Any ideas
> or work around?
> 
> Thank you
> 
> Chris
> _________________________________
> 
> 
> <Extension dicom-multi>
>     Module xm_multiline
>   HeaderLine /^\d\d\/\d\d\/\d\d\d\d\s\d\d:\d\d:\d\d\,\d\d\d/
> </Extension>
> 
> 
> -- In IM File line
> 
> Exec if $raw_event =~ /^\d\d\/\d\d\/\d\d\d\d\s\d\d:\d\d:\d\d\,\d\d\d/
> log_info("captured: " + $1);
> 
> 
> Error:
> 2014-07-28 15:09:37 ERROR Couldn't parse Exec block at C:\Program Files
> (x86)\nxlog\conf\nxlogPlay2.conf:43; couldn't parse statement at line 43,
> character 30 in C:\Program Files (x86)\nxlog\conf\nxlogPlay2.conf; failed
> to compile regular expression '^\d\d\', error at position 6: \ at end of
> pattern

------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
nxlog-ce-users mailing list
nxlog-ce-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nxlog-ce-users

Reply via email to