<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Message: 4<br>
Date: Sat, 24 Sep 2011 09:31:34 +0200 (CEST)<br>
From: Jakub Jankowski &lt;<a href="mailto:shasta@toxcorp.com">shasta@toxcorp.com</a>&gt;<br>
Subject: Re: [syslog-ng] How to send tracebacks through syslog-ng?<br>
To: Syslog-ng users&#39; and developers&#39; mailing list<br>
        &lt;<a href="mailto:syslog-ng@lists.balabit.hu">syslog-ng@lists.balabit.hu</a>&gt;<br>
Message-ID: &lt;<a href="mailto:alpine.LNX.2.00.1109240928240.15891@bluzg.slackware.pl">alpine.LNX.2.00.1109240928240.15891@bluzg.slackware.pl</a>&gt;<br>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed<br>
<br>
On 2011-09-24, Luis Pugoy wrote:<br>
<br>
&gt; rewrite r_rewrite_subst {  subst(&quot;a*&quot;, &quot;?&quot;, value(&quot;MESSAGE&quot;) type(&quot;pcre&quot;)<br>
&gt; flags(&quot;utf8&quot; &quot;global&quot;));  };<br>
&gt;<br>
&gt; I thought that it would replace 0 or more occurrences of &#39;a&#39; with a question<br>
&gt; mark. However, when the input is &#39;a&#39;, the output becomes &#39;a?&#39;. It just<br>
&gt; appends a question mark at the end. &#39;aa&#39; also becomes &#39;aa?&#39;. What is weirder<br>
&gt; still is that even if the input does not contain &#39;a&#39;, the question mark is<br>
&gt; still appended. So &#39;1&#39; becomes &#39;1?&#39;.<br>
<br>
Well, does &quot;1&quot; match /a*/ ? :)<br>
It doesn&#39;t make any difference if that&#39;s /a*/, /b*/ or /.*/ - this kind of<br>
regexp matches everything, even an empty string.<br>
<br>
HTH<br>
<br>
--<br>
Jakub Jankowski|<a href="mailto:shasta@toxcorp.com">shasta@toxcorp.com</a>|<a href="http://toxcorp.com/" target="_blank">http://toxcorp.com/</a><br>
GPG: FCBF F03D 9ADB B768 8B92 BB52 0341 9037 A875 942D</blockquote><div><br></div><div>Hello Jakub.</div><div><br></div><div>Thanks for the reply. You&#39;re right in that &quot;1&quot; matches /a*/, but wouldn&#39;t the resulting replacement be &quot;?&quot; instead of &quot;1?&quot; ? Also, if I just use /a/ and use &quot;a&quot; as input, it does not seem to match. The text is still outputted as &quot;a&quot;. </div>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"> </blockquote></div>