<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#0050d0">
<font size="-1"><font face="Helvetica, Arial, sans-serif">\Q is quote
in pcre, not what I need to do. Plus its not evaluating the escapes at
all. I'm guessing that syslog-ng isnt passing the second argument of
the subst() to pcre, but is doing to replacement itself (havent dug
through the code).</font></font><br>
<br>
Sent: Thursday, March 11, 2010 12:31:08 PM<br>
From: Paul Robert Marino <a class="moz-txt-link-rfc2396E" href="mailto:prmarino1@gmail.com">&lt;prmarino1@gmail.com&gt;</a><br>
To: Syslog-ng users' and developers' mailing list
<a class="moz-txt-link-rfc2396E" href="mailto:syslog-ng@lists.balabit.hu">&lt;syslog-ng@lists.balabit.hu&gt;</a> <br>
Subject: Re: [syslog-ng] subst() pcre escape sequences
<blockquote cite="mid:4B9944FC.9050203@gmail.com" type="cite">
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
try a \Q<span class="hl kwb"></span> instead of \L<br>
  <br>
On 3/10/2010 6:47 PM, Patrick H. wrote:
  <blockquote cite="mid:4B982F87.1080602@feystorm.net" type="cite"><font
 size="-1"><font face="Helvetica, Arial, sans-serif">Ok, I'm
trying to lowercase a certain macro with a pcre rewrite rule.
Unfortunately it doesnt seem to be observing pcre escape sequences.<br>
    <font color="#990000">subst('^(.+)$','\L$1\E',value('FROM')
flags('store-matches') type('pcre'));</font> (the FROM macro is created
from the named match of an earlier pcre filter()<br>
It ends up just putting a literal '\L' and '\E' at the start and end of
the string. Is this a bug, or am I doing something wrong, or is there
another way to do this?<br>
    </font></font>
    <pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
______________________________________________________________________________
Member info: <a moz-do-not-send="true" class="moz-txt-link-freetext"
 href="https://lists.balabit.hu/mailman/listinfo/syslog-ng">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a>
Documentation: <a moz-do-not-send="true" class="moz-txt-link-freetext"
 href="http://www.balabit.com/support/documentation/?product=syslog-ng">http://www.balabit.com/support/documentation/?product=syslog-ng</a>
FAQ: <a moz-do-not-send="true" class="moz-txt-link-freetext"
 href="http://www.campin.net/syslog-ng/faq.html">http://www.campin.net/syslog-ng/faq.html</a>

  </pre>
  </blockquote>
  <br>
  <pre wrap="">
<hr size="4" width="90%">
______________________________________________________________________________
Member info: <a class="moz-txt-link-freetext" href="https://lists.balabit.hu/mailman/listinfo/syslog-ng">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a>
Documentation: <a class="moz-txt-link-freetext" href="http://www.balabit.com/support/documentation/?product=syslog-ng">http://www.balabit.com/support/documentation/?product=syslog-ng</a>
FAQ: <a class="moz-txt-link-freetext" href="http://www.campin.net/syslog-ng/faq.html">http://www.campin.net/syslog-ng/faq.html</a>

  </pre>
</blockquote>
</body>
</html>